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