From f725a0d11a2f0bf7a1bb6be697e1e5f9f08c06ce Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 26 Apr 2001 19:42:08 +0000 Subject: - Convert cfunction -> function. --- tests/classes/class_example.phpt | 4 ++-- tests/classes/inheritance.phpt | 6 +++--- tests/lang/019.phpt | 2 +- tests/lang/022.phpt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/classes/class_example.phpt b/tests/classes/class_example.phpt index d3d1b45f59..8f07c278fc 100644 --- a/tests/classes/class_example.phpt +++ b/tests/classes/class_example.phpt @@ -10,7 +10,7 @@ Classes general test class user { var $first_name,$family_name,$address,$phone_num; - cfunction display() + function display() { echo "User information\n"; echo "----------------\n\n"; @@ -20,7 +20,7 @@ class user { echo "Phone:\t\t ".$this->phone_num."\n"; echo "\n\n"; } - cfunction initialize($first_name,$family_name,$address,$phone_num) + function initialize($first_name,$family_name,$address,$phone_num) { $this->first_name = $first_name; $this->family_name = $family_name; diff --git a/tests/classes/inheritance.phpt b/tests/classes/inheritance.phpt index 45aafab7de..2a2f0f755b 100644 --- a/tests/classes/inheritance.phpt +++ b/tests/classes/inheritance.phpt @@ -10,19 +10,19 @@ Classes inheritance test class foo { var $a; var $b; - cfunction display() { + function display() { echo "This is class foo\n"; echo "a = ".$this->a."\n"; echo "b = ".$this->b."\n"; } - cfunction mul() { + function mul() { return $this->a*$this->b; } }; class bar extends foo { var $c; - cfunction display() { /* alternative display function for class bar */ + function display() { /* alternative display function for class bar */ echo "This is class bar\n"; echo "a = ".$this->a."\n"; echo "b = ".$this->b."\n"; diff --git a/tests/lang/019.phpt b/tests/lang/019.phpt index 43ab7e29e6..f8339b94a3 100644 --- a/tests/lang/019.phpt +++ b/tests/lang/019.phpt @@ -7,7 +7,7 @@ eval() test error_reporting(0); -eval("cfunction test() { echo \"hey, this is a function inside an eval()!\\n\"; }"); +eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }"); $i=0; while ($i<10) { diff --git a/tests/lang/022.phpt b/tests/lang/022.phpt index 5c07f7d791..1465396926 100644 --- a/tests/lang/022.phpt +++ b/tests/lang/022.phpt @@ -5,7 +5,7 @@ Switch test 3 --FILE--