Bug->Doc #53701 [Opn]: T_USE should not be available on PHP 5.2

From: Date: Mon, 10 Jan 2011 00:35:34 +0000
Subject: Bug->Doc #53701 [Opn]: T_USE should not be available on PHP 5.2
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5773@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53701&edit=1 ID: 53701 Updated by: kalle@php.net Reported by: pear at laurent-laville dot org Summary: T_USE should not be available on PHP 5.2 Status: Open -Type: Bug +Type: Documentation Problem -Package: Scripting Engine problem +Package: Documentation problem Operating System: Windows PHP Version: 5.2.17 Block user comment: N Private report: N New Comment: T_USE have been reserved since prior PHP4, the documentation should be updated to reflect this Previous Comments: ------------------------------------------------------------------------ [2011-01-09 16:18:22] pear at laurent-laville dot org 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 this bug report at http://bugs.php.net/bug.php?id=53701&edit=1

« previous php.doc.bugs (#5773) next »