dis-bench / src /php /php-src /Zend /tests /closures /bug70397.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
255 Bytes
--TEST--
Bug #70397 (Segmentation fault when using Closure::call and yield)
--FILE--
<?php
$f = function () {
$this->value = true;
yield $this->value;
};
var_dump($f->call(new class {
public $value;
})->current());
?>
--EXPECT--
bool(true)