Closed (fixed)
Project:
Grammar Parser
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Mar 2010 at 22:41 UTC
Updated:
19 Mar 2010 at 23:00 UTC
Currently T_RETURN tokens are being parsed into a PGPFunctionCall, which makes sense, but their type is being set as "601" instead of "T_RETURN". This breaks commands like PGPList->find(T_RETURN), since find looks for $object->type, not $object->name['type']. Maybe it's a bug with PGPList->find()?
Here's the parsed output of return call:
PGPFunctionCall
(
[parent] => PGPNode
(
[type-1] => 601
)
[type] => 601
[name] => Array
(
[type] => 335 (T_RETURN)
[value] => return
)
This has broken coder_upgrade routines such as coder_upgrade_convert_action_info().
Comments
Comment #1
solotandem commentedFixed in next dev release.