View Revisions: Issue #1272

Summary 0001272: property_get doesn't return attributes for SimpleXMLElement
Revision 2016-12-12 00:17 by derick
Description Try to get attributes for SimpleXmlElement, i.e. $e = new SimpleXmlElement($xml); get value for $e->@attributes.

Xdebug 2.3.3 response as there are no children:

<- property_get -i 19 -n $e->@attributes -d 0 -c 0 -p 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="19"><property name="$e->@attributes" fullname="$e->@attributes" address="139846350792976" type="object" classname="SimpleXMLElement" children="0" numchildren="0" page="0" pagesize="100"></property></response>

While Xdebug 2.2.6 successfully returns child attributes:

<- property_get -i 17 -n $e->@attributes -d 0 -c 0 -p 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="17"><property name="$e->@attributes" fullname="$e->@attributes" address="139821914260288" type="array" children="1" numchildren="1" page="0" pagesize="100"><property name="att1" fullname="$e->@attributes['att1']" address="139821914260336" type="string" size="5" encoding="base64"><![CDATA[YXR0LWE=]]></property></property></response>
Revision 2016-02-16 10:49 by SvetlanaZem
Description Try to get attributes for SimpleXmlElement, i.e. $e = new SimpleXmlElement($xml); get value for $e->@attributes.

Xdebug 2.3.3 response as there are no children:

<- property_get -i 19 -n $e->@attributes -d 0 -c 0 -p 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="19"><property name="$e->@attributes" fullname="$e->@attributes" address="139846350792976" type="object" classname="SimpleXMLElement" children="0" numchildren="0" page="0" pagesize="100"></property></response>

While Xdebug 2.2.6 successfully returns child attributes:

<- property_get -i 17 -n $e->@attributes -d 0 -c 0 -p 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="17"><property name="$e->@attributes" fullname="$e->@attributes" address="139821914260288" type="array" children="1" numchildren="1" page="0" pagesize="100"><property name="att1" fullname="$e->@attributes['att1']" address="139821914260336" type="string" size="5" encoding="base64"><![CDATA[YXR0LWE=]]></property></property></response>