token_name() does not return name for T_POW and T_POW_EQUAL token
| 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
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-06-07 13:30 UTC] tyrael@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tyrael