diff options
author | Sander Roobol <sander@php.net> | 2002-03-29 17:12:11 +0000 |
---|---|---|
committer | Sander Roobol <sander@php.net> | 2002-03-29 17:12:11 +0000 |
commit | ef2608925c73430c25ad42a049a1039cd210ae67 (patch) | |
tree | 5cf4fb46971a0a179978959b4ba1ab217ad8fed7 /tests/lang/010.phpt | |
parent | 4e8f9e2585b1016ee2399e38059c8eed4bebb4cf (diff) | |
download | php-git-ef2608925c73430c25ad42a049a1039cd210ae67.tar.gz |
Updating tests: remove alternative syntax in tests, added a special
alternative-syntax testfile.
Diffstat (limited to 'tests/lang/010.phpt')
-rw-r--r-- | tests/lang/010.phpt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/lang/010.phpt b/tests/lang/010.phpt index 03def4b112..e414baae6e 100644 --- a/tests/lang/010.phpt +++ b/tests/lang/010.phpt @@ -3,11 +3,13 @@ Testing function parameter passing with a return value --POST-- --GET-- --FILE-- -<?php old_function Test $b ( - $b++; - return($b); - ); - $a = Test(1); - echo $a?> +<?php +function test ($b) { + $b++; + return($b); +} +$a = test(1); +echo $a; +?> --EXPECT-- 2 |