xref: /PHP-7.4/Zend/tests/bug71724.phpt (revision 860dc17a)
1--TEST--
2Bug #71724: yield from does not count EOLs
3--FILE--
4<?php
5
6function test()
7{
8    yield
9
10
11
12
13    from [__LINE__];
14}
15var_dump(test()->current());
16
17?>
18--EXPECT--
19int(10)
20