1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/bug70397.phpt

16 lines
235 B
PHP

--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 {})->current());
?>
--EXPECT--
bool(true)