#22047 [NEW]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

From: Date: Tue, 04 Feb 2003 16:02:59 +0000
Subject: #22047 [NEW]: PHP pollutes the namespace w/ (what looks like) its grammar tokens
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32070@lists.php.net to get a copy of this message
From: szepe@pinerecords.com Operating system: Linux PHP version: 4.3.0 PHP Bug Type: *General Issues Bug description: PHP pollutes the namespace w/ (what looks like) its grammar tokens 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 bug report at http://bugs.php.net/?id=22047&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22047&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22047&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22047&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22047&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22047&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22047&r=support Expected behavior: http://bugs.php.net/fix.php?id=22047&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22047&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22047&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22047&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22047&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22047&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22047&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22047&r=gnused

« previous php.bugs (#32070) next »