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

From: Date: Mon, 10 Jan 2011 04:36:37 +0000
Subject: Doc #53701 [Asn->Csd]: 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-5775@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: aharvey@php.net Reported by: pear at laurent-laville dot org Summary: T_USE should not be available on PHP 5.2 -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Windows PHP Version: 5.2.17 Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-01-10 05:36:33] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=307324 Log: Fix doc bug #53701 (T_USE should not be available on PHP 5.2) by adding the version T_USE was first reserved in. ------------------------------------------------------------------------ [2011-01-10 01:35:34] kalle@php.net T_USE have been reserved since prior PHP4, the documentation should be updated to reflect this ------------------------------------------------------------------------ [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 (#5775) next »