diff options
author | Andi Gutmans <andi@php.net> | 2001-04-26 19:42:08 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-04-26 19:42:08 +0000 |
commit | f725a0d11a2f0bf7a1bb6be697e1e5f9f08c06ce (patch) | |
tree | 4ccc529019d75f3b6be4b6ba39f7c8f589cad218 /tests | |
parent | 1865be6ca46346a24d1c53ece5d638af4a91e574 (diff) | |
download | php-git-f725a0d11a2f0bf7a1bb6be697e1e5f9f08c06ce.tar.gz |
- Convert cfunction -> function.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/class_example.phpt | 4 | ||||
-rw-r--r-- | tests/classes/inheritance.phpt | 6 | ||||
-rw-r--r-- | tests/lang/019.phpt | 2 | ||||
-rw-r--r-- | tests/lang/022.phpt | 2 |
4 files changed, 7 insertions, 7 deletions
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-- <?php -cfunction switchtest ($i, $j) +function switchtest ($i, $j) { switch ($i): case 0: |