php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53701 T_USE should not be available on PHP 5.2
Submitted: 2011-01-09 16:18 UTC Modified: 2011-01-10 05:36 UTC
From: pear at laurent-laville dot org Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.17 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pear at laurent-laville dot org
New email:
PHP Version: OS:

 

 [2011-01-09 16:18 UTC] 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
...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-10 01:35 UTC] kalle@php.net
-Type: Bug +Type: Documentation Problem -Package: Scripting Engine problem +Package: Documentation problem
 [2011-01-10 01:35 UTC] kalle@php.net
T_USE have been reserved since prior PHP4, the documentation should be updated to reflect this
 [2011-01-10 05:02 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2011-01-10 05:36 UTC] 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 05:36 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2011-01-10 05:36 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 21:01:32 2025 UTC