php-src/Zend/tests/bug71724.phpt
2016-03-06 21:38:21 +01:00

20 lines
175 B
PHP

--TEST--
Bug #71724: yield from does not count EOLs
--FILE--
<?php
function test()
{
yield
from [__LINE__];
}
var_dump(test()->current());
?>
--EXPECT--
int(10)