summaryrefslogtreecommitdiff
path: root/tests/lang/017.phpt
blob: 1fc8429a82cfb506e3f8a315414bdeea6803baac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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