mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
20 lines
218 B
PHP
20 lines
218 B
PHP
--TEST--
|
|
Aborted yield during object instantiation
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {
|
|
public function __construct() {}
|
|
}
|
|
|
|
function gen() {
|
|
$x = new Foo(yield);
|
|
}
|
|
|
|
gen()->rewind();
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|