From: Operating system: Windows PHP version: 5.2.17 Package: Scripting Engine problem Bug Type: Bug Bug description:T_USE should not be available on PHP 5.2
Description: ------------ While I worked on a new version of PHP_CompatInfo, I've found that the token T_USE is available on at least PHP 5.2.13 version. If keyword "use" is only related to namespace, as this last one is only available since PHP 5.3, it should not be present. http://www.php.net/manual/en/tokens.php Regards Laurent Laville http://pear.php.net/user/farell Test script: --------------- <?php print_r(get_defined_constants(true)); ?> Expected result: ---------------- T_USE token not available Actual result: -------------- ) [tokenizer] => Array ( ... [T_USE] => 339 ... -- Edit bug report at http://bugs.php.net/bug.php?id=53701&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53701&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53701&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53701&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53701&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53701&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53701&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53701&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53701&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53701&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53701&r=support Expected behavior: http://bugs.php.net/fix.php?id=53701&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53701&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53701&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53701&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53701&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53701&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53701&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53701&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53701&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53701&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53701&r=mysqlcfg