mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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)
|