|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-11 14:55 UTC] cmb@php.net
-Status: Open
+Status: Verified
-PHP Version: 7.3.0alpha3
+PHP Version: 7.2.7
[2018-07-11 14:55 UTC] cmb@php.net
[2018-07-11 17:57 UTC] mattacosta at gmail dot com
[2019-04-03 17:47 UTC] chasepeeler at gmail dot com
[2019-04-03 18:07 UTC] requinix@php.net
[2019-04-03 19:09 UTC] chasepeeler at gmail dot com
[2019-04-03 19:18 UTC] requinix@php.net
[2019-09-06 21:47 UTC] jasny@php.net
-Assigned To:
+Assigned To: jasny
[2021-10-07 10:12 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
[2021-10-07 10:12 UTC] cmb@php.net
[2023-01-02 02:03 UTC] jasny@php.net
-Assigned To: jasny
+Assigned To:
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
Description: ------------ If a perfectly valid heredoc is not followed by an additional character, the reported error states that an end label was expected, even though it was present. This means that instead of removing the requirement for a trailing newline, it was in fact replaced by a requirement for any trailing character. Test script: --------------- // No trailing line. echo <<<LABEL hello world LABEL Expected result: ---------------- Parse error: syntax error, unexpected end of file, expecting ',' or ';' Actual result: -------------- Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)