|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-10-10 13:01 UTC] nikic@php.net
[2018-10-10 13:01 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ The end label for the second heredoc string is cut off here, with the remainder becoming a T_STRING. Test script: --------------- <?php $code = <<<'CODE' <?php <<<TEST $a TEST; <<<END $a END; CODE; var_dump(token_get_all($code)); Expected result: ---------------- [11]=> array(3) { [0]=> int(384) [1]=> string(3) " END" [2]=> int(9) } Actual result: -------------- [11]=> array(3) { [0]=> int(384) [1]=> string(3) " EN" [2]=> int(9) } [12]=> array(3) { [0]=> int(319) [1]=> string(1) "D" [2]=> int(9) }