dis-bench / src /php /php-src /Zend /tests /generators /bug72523.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
218 Bytes
--TEST--
Bug #72523 (dtrace issue with reflection (failed test))
--FILE--
<?php
$gen = (new class() {
function a() {
yield "okey";
}
})->a();
var_dump($gen->current());
?>
--EXPECT--
string(4) "okey"