mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08:00
18 lines
232 B
PHP
18 lines
232 B
PHP
--TEST--
|
|
Bug #70241 (Skipped assertions affect Generator returns)
|
|
--INI--
|
|
zend.assertions=-1
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo () {
|
|
assert(yield 1);
|
|
return null;
|
|
}
|
|
|
|
var_dump(foo() instanceof Generator);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|