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

From: Date: Sun, 06 Mar 2016 20:40:54 +0000
Subject: Bug #71724 [Opn->Csd]: yield from does not count EOLs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199632@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 Updated by: nikic@php.net Reported by: temp at temp dot ru Summary: yield from does not count EOLs -Status: Open +Status: Closed Type: Bug Package: *Compile Issues Operating System: Any PHP Version: 7.0.4 Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikic Revision: http://git.php.net/?p=php-src.git;a=commit;h=860dc17ab758683a121d66a625308bdfbbcad5c4 Log: Fixed bug #71724 Previous Comments: ------------------------------------------------------------------------ [2016-03-06 20:17:33] temp at temp dot ru 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 (#199632) next »