[xdebug-general] property_get - $_POST items not accessible ... ?

From: Michal Gajek <migajek[@]gmail.com>
Date: Sun, 9 May 2010 13:31:25 +0200

Hi,
 when at break state [caused by breakpoint hit] I'm requesting
"superglobals" by calling

  context_get -i 9 -c 1

 in response I get an array of superglobals together with their values,
however only "simple" types ... when an array has nested array, it is
returned empty (which seems to be OK, as we don't want to transfer tons of
data when unnecessary). Here's the part of data which represents $_POST
array:

 <property name="_POST" fullname="$_POST" address="151453160" type="array"
children="1" numchildren="2" page="0" pagesize="32">
    <property name="Comment" fullname="$_POST[&apos;Comment&apos;]"
address="151454340" type="array" children="1" numchildren="3">
    </property>
    <property name="ajax" fullname="$_POST[&apos;ajax&apos;]"
address="151454604" type="string" size="12" encoding="base64">
        <![CDATA[Y29tbWVudC1mb3Jt]]>
    </property>
</property>

 which is of course correct ... but, then I want to see values of
$_POST['Comment'] array, thus I'm calling

  property_get -i 11 -n $_POST['Comment']

in response I get an error ...

<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="11"
status="break" reason="ok"><error code="300"><message><![CDATA[can not get
property]]></message></error></response>

I'm using XDebug svn revision 3274 ... is there any (undocumented) change
in protocol (which requires for example base64 encoding variable name or
something) or am I simply doing something wrong?

PHP Version 5.2.10-2ubuntu6.4
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519

Best Regards / Pozdrawiam
Micha³ Gajek
Received on Sun May 09 2010 - 12:31:25 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST