File size: 288 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | --TEST--
It's not possible to assign dynamic properties on a generator
--FILE--
<?php
function gen() {
yield;
}
$gen = gen();
try {
$gen->prop = new stdClass;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Cannot create dynamic property Generator::$prop
|