Bug #67395 [Csd]: token_name() does not return name for T_POW and T_POW_EQUAL token
| From: | tyrael@php.net | Date: | Sat, 07 Jun 2014 14:41:27 +0000 |
| Subject: | Bug #67395 [Csd]: token_name() does not return name for T_POW and T_POW_EQUAL token | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186093@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67395&edit=1
ID: 67395
Updated by: tyrael@php.net
Reported by: danielkurecka at gmail dot com
Summary: token_name() does not return name for T_POW and
T_POW_EQUAL token
Status: Closed
Type: Bug
Package: *General Issues
PHP Version: 5.6.0beta4
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2014-06-07 13:30:52] 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 01:07:55] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67395&edit=1