mirror of
https://github.com/php/php-src.git
synced 2024-10-07 09:46:10 +00:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
21 lines
213 B
PHP
21 lines
213 B
PHP
--TEST--
|
|
Testing stack after early function return
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
old_function F (
|
|
if(1):
|
|
return("Hello");
|
|
endif;
|
|
);
|
|
|
|
$i=0;
|
|
while($i<2):
|
|
echo F();
|
|
$i++;
|
|
endwhile;
|
|
?>
|
|
--EXPECT--
|
|
HelloHello
|