mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
15 lines
174 B
PHP
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
|