📄 Viewing: bug70397.phpt

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

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests