mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Merging from 5_3
This commit is contained in:
parent
93353faf5b
commit
bc58c00c00
1 changed files with 3 additions and 9 deletions
|
@ -1,7 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Alternative syntaxes test
|
Alternative syntaxes test
|
||||||
--SKIPIF--
|
|
||||||
<?php if(version_compare(zend_version(), "2.0.0-dev", '>=')) echo "skip removed in Zend Engine 2\n"; ?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$a = 1;
|
$a = 1;
|
||||||
|
@ -38,16 +36,12 @@ switch ($a):
|
||||||
echo 0;
|
echo 0;
|
||||||
break;
|
break;
|
||||||
endswitch;
|
endswitch;
|
||||||
|
|
||||||
echo "\nold_function: ";
|
|
||||||
old_function foo $bar, $baz (
|
|
||||||
return sprintf("foo(%s, %s);\n", $bar, $baz);
|
|
||||||
);
|
|
||||||
echo foo(1,2);
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
===DONE===
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
If: 11
|
If: 11
|
||||||
While: 12346789
|
While: 12346789
|
||||||
For: 0123401234
|
For: 0123401234
|
||||||
Switch: 1
|
Switch: 1
|
||||||
old_function: foo(1, 2);
|
===DONE===
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue