php-src/Zend/tests/closure_028.phpt
2020-02-03 22:52:20 +01:00

15 lines
174 B
PHP

--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