note 53517 rejected from function.token-get-all by betz

From: Date: Sat, 04 Jun 2005 11:35:01 +0000
Subject: note 53517 rejected from function.token-get-all by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89915@lists.php.net to get a copy of this message
Note Submitter: PrzemekG_ at poczta dot onet dot pl ---- I don't know if it is a bug or not but you when I use the tokenizer on exactly the same file (in PHP 5.0.4), on folowing code: <code> <? define('ABC', 'hahaha'); echo '2'.ABC.' papa'; ?> </code> not always reports '<' + '?' as T_OPEN_TAG but as two separated tokens '<' and '?' (same goes for '<' + '?' + 'php', which gives 3 tokens '<', '?' and 'php'). So if you use the tokenizer functions for other thing than to play, you should also consider the above sequence of tokens as the php code start tags. Closing tags are ok.

« previous php.notes (#89915) next »