summaryrefslogtreecommitdiff
path: root/Zend/tests/generators/bug72523.phpt
blob: efce6f693692fa259448b347b0937ce2754bfddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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"