Bug #71724 [Csd]: yield from does not count EOLs

From: Date: Fri, 23 Nov 2018 09:21:39 +0000
Subject: Bug #71724 [Csd]: yield from does not count EOLs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218094@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71724&edit=1 ID: 71724 User updated by: dragondreamer at live dot com Reported by: dragondreamer at live dot com Summary: yield from does not count EOLs Status: Closed Type: Bug Package: *Compile Issues Operating System: Any PHP Version: 7.0.4 Block user comment: N Private report: N New Comment: Edit e-mail address Previous Comments: ------------------------------------------------------------------------ [2016-07-20 11:33:11] davey@php.net Automatic comment on behalf of nikic Revision: http://git.php.net/?p=php-src.git;a=commit;h=860dc17ab758683a121d66a625308bdfbbcad5c4 Log: Fixed bug #71724 ------------------------------------------------------------------------ [2016-03-06 20:40:51] nikic@php.net Automatic comment on behalf of nikic Revision: http://git.php.net/?p=php-src.git;a=commit;h=860dc17ab758683a121d66a625308bdfbbcad5c4 Log: Fixed bug #71724 ------------------------------------------------------------------------ [2016-03-06 20:17:33] dragondreamer at live dot com Description: ------------ PHP lexer does not count new lines which can be inserted between "yield" and "from" words in "yield from" instruction. Test script: --------------- <?php function test() { yield from [3, 4]; } 123 Expected result: ---------------- Parse error: syntax error, unexpected end of file in /in/7Hocc on line 13 Actual result: -------------- Parse error: syntax error, unexpected end of file in /in/7Hocc on line 8 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71724&edit=1

« previous php.bugs (#218094) next »