|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-27 21:06 UTC] nikic@php.net
[2018-06-27 21:06 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
Description: ------------ token_get_all with the TOKEN_PARSE flag fails to recognise the T_CLOSE_TAG token if the close tag has a newline afterwards Test script: --------------- var_dump(token_get_all("<?php echo 1 ?>\n", TOKEN_PARSE)[5]); Expected result: ---------------- array(3) { [0]=> int(381) [1]=> string(3) "?> " [2]=> int(1) } Actual result: -------------- string(3) "?> "