summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_028.phpt
blob: c28849f44818ac08528cf3275e5bc39ec8e889ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Closure 028: Trying to use lambda directly in foreach
--FILE--
<?php

foreach (function(){ return 1; } as $y) {
	var_dump($y);
}

print "ok\n";

?>
--EXPECT--
ok