php-src/tests/lang/017.phpt
Stig Bakken 315f4f5658 @PHP 3 regression testing framework re-born (Stig)
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.
2000-08-27 19:46:06 +00:00

19 lines
233 B
PHP

--TEST--
Testing user-defined function falling out of an If into another
--POST--
--GET--
--FILE--
<?php $a = 1;
old_function Test $a (
if($a<3):
return(3);
endif;
);
if($a < Test($a)):
echo "$a\n";
$a++;
endif?>
--EXPECT--
1