|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 - 1 = ?
Subscribe to this entry?

 [2014-06-07 01:07 UTC] danielkurecka at gmail dot com
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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-07 13:30 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: tyrael
 [2014-06-07 13:30 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2014-06-07 14:41 UTC]
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:;a=commit;h=016b1f089e90af2e6a72c78107edce8eb2dcb31f
will be in RC1
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 09:01:32 2024 UTC