mirror of
https://github.com/php/php-src.git
synced 2024-09-28 13:26:11 +00:00
20 lines
175 B
Plaintext
20 lines
175 B
Plaintext
|
--TEST--
|
||
|
Bug #71724: yield from does not count EOLs
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function test()
|
||
|
{
|
||
|
yield
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
from [__LINE__];
|
||
|
}
|
||
|
var_dump(test()->current());
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(10)
|