php-src/Zend/tests/bug70241.phpt
2020-02-03 22:52:20 +01:00

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)