mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
18 lines
226 B
PHP
18 lines
226 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)
|