dis-bench / src /php /php-src /Zend /tests /closures /closure_028.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
174 Bytes
--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