1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/Zend/tests/generators/bug72523.phpt
T

16 lines
206 B
PHP

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