#22047 [Opn->WFx]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

From: Date: Tue, 04 Feb 2003 16:05:44 +0000
Subject: #22047 [Opn->WFx]: PHP pollutes the namespace w/ (what looks like) its grammar tokens
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32071@lists.php.net to get a copy of this message
ID: 22047 Updated by: derick@php.net Reported By: szepe@pinerecords.com -Status: Open +Status: Wont fix Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.0 New Comment: The tokenizer extension needs those, and changing it now would be breaking all scripts that make use of it. So there is little we can do here... Derick Previous Comments: ------------------------------------------------------------------------ [2003-02-04 10:02:59] szepe@pinerecords.com Since 4.3.0, PHP defines constants that are suspiciously similar to its grammar tokens. These cannot be redefined and should clearly be considered namespace pollution. For instance, the following example: <? echo T_LIST, ", ", T_STRING, "\n"; ?> will output '345, 304'. Needless to say, this broke one of my PHP creations horribly. :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22047&edit=1

« previous php.bugs (#32071) next »