summaryrefslogtreecommitdiff
path: root/tests/lang/017.phpt
blob: bb18194e5d170d0f35bc186a59f8ded84e9e6d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Testing user-defined function falling out of an If into another
--POST--
--GET--
--FILE--
<?php
$a = 1;
function Test ($a) {
	if ($a<3) {
		return(3);
	}
}

if ($a < Test($a)) {
	echo "$a\n";
	$a++;
}
?>
--EXPECT--
1