mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
19 lines
209 B
PHP
19 lines
209 B
PHP
--TEST--
|
|
Testing user-defined function falling out of an If into another
|
|
--FILE--
|
|
<?php
|
|
$a = 1;
|
|
function Test ($a) {
|
|
if ($a<3) {
|
|
return(3);
|
|
}
|
|
}
|
|
|
|
if ($a < Test($a)) {
|
|
echo "$a\n";
|
|
$a++;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
1
|