Skip to content

Commit

Permalink
Fixed bug #71724
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Mar 6, 2016
1 parent be5bbe7 commit 860dc17
Show file tree
Hide file tree
Showing 4 changed files with 238 additions and 216 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ PHP NEWS
. Fixed bug #71470 (Leaked 1 hashtable iterators). (Nikita)
. Fixed bug #71575 (ISO C does not allow extra ‘;’ outside of a function).
(asgrim)
. Fixed bug #71724 (yield from does not count EOLs). (Nikita)

- Curl:
. Fixed bug #71694 (Support constant CURLM_ADDED_ALREADY). (mpyw)
Expand Down
19 changes: 19 additions & 0 deletions Zend/tests/bug71724.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--TEST--
Bug #71724: yield from does not count EOLs
--FILE--
<?php

function test()
{
yield




from [__LINE__];
}
var_dump(test()->current());

?>
--EXPECT--
int(10)
Loading

0 comments on commit 860dc17

Please sign in to comment.