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

From: Date: Mon, 10 Jan 2011 04:02:29 +0000
Subject: Doc #53701 [Opn->Asn]: 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-5774@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: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem Operating System: Windows PHP Version: 5.2.17 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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 (#5774) next »