php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67395 token_name() does not return name for T_POW and T_POW_EQUAL token
Submitted: 2014-06-07 01:07 UTC Modified: 2014-06-07 14:41 UTC
From: danielkurecka at gmail dot com Assigned: tyrael (profile)
Status: Closed Package: *General Issues
PHP Version: 5.6.0beta4 OS:
Private report: No CVE-ID: None
 [2014-06-07 01:07 UTC] danielkurecka at gmail dot com
Description:
------------
Actually tested with beta3 but I think it is reproducable with beta4 too.

Test script:
---------------
$powToken = token_get_all('<?php **')[1][0];
echo token_name($powToken), "\n";

$powEqualToken = token_get_all('<?php **=')[1][0];
echo token_name($powEqualToken);

Expected result:
----------------
T_POW
T_POW_EQUAL

Actual result:
--------------
UNKNOWN
UNKNOWN

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-07 13:30 UTC] tyrael@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tyrael
 [2014-06-07 13:30 UTC] tyrael@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-06-07 14:41 UTC] tyrael@php.net
I've referenced the wrong bug number from the commit comment, so the "GIT/SVN commits" tab won't list the commit, here it is:
http://git.php.net/?p=php-src.git;a=commit;h=016b1f089e90af2e6a72c78107edce8eb2dcb31f
will be in RC1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC