File size: 255 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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)