mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
20 lines
175 B
PHP
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)
|