|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-10-19 16:02 UTC] nikic@php.net
Description:
------------
token_get_all('<?php b"$var"') will return 'b"' as a string-token, even though it is not a single character.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
I doubt that this is expected. Only single characters can be represented using a one-char string token, because the token number and token text are identical in this case. 'b"' is not a single character and thus can't be returned as a string token, because the token number is chr('"'), not chr('b"') (which is chr('b')).