[xdebug-dev] Bug 0000215: cannot get the next page of children variables.

From: <noreply[@]lists.xdebug.org>
Date: Mon, 23 Oct 2006 22:36:18 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000215
======================================================================
Reporter: d_kelsey
Handler:
======================================================================
Project: Xdebug
Bug ID: 215
Category: Debug client (console)
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Operating System: Windows
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc1
======================================================================
Date Submitted: 2006-10-23 17:57 CEST
Last Modified: 2006-10-23 22:36 CEST
======================================================================
Summary: cannot get the next page of children variables.
Description:
This is related to bug report 214.

$a is a large array (over max_children size)
$d[0] = $a
($d contains 50 entries)

As reported in 214, when I do a context get, the following property is
returned
<property name="0" fullname="$d[0]" address="10211656" type="array"
children="1" numchildren="200">

I also get the first 32 properties (the example here is the first 2)

<property name="0" fullname="$d[0][0]" address="10213536" type="string"
size="55"
encoding="base64"><![CDATA[MC1UaGlzIGlzIGEgbG9uZ2dnZ2dnZyBzdHRpbmcgdG8=]]></property>
<property name="1" fullname="$d[0][1]" address="10213616" type="string"
size="55"
encoding="base64"><![CDATA[MS1UaGlzIGlzIGEgbG9uZ2dnZ2dnZyBzdHRpbmcgdG8=]]></property>

As I don't get all the entries I attempt to retrieve the next page of
information using the command

"property_get -i 83 -n $d[0] -d 0 -m 32 -p 1" ($d[0] is the full name).

The response I get is
<response command="property_get" transaction_id="83" status="break"
reason="ok"><error code="300"><message><![CDATA[can not get
property]]></message></error></response>

So it looks like I cannot get the next page of information.
I don't want to try to get all the data but only parts as requested by the
user of the debugger.

I think this command should work to retrieve the required extra entries in
this nested array in the same manner that I can request extra pages in a
normal (unnested) array, ie
property_get -i 109 -n $d -d 0 -m 32 -p 1

======================================================================

----------------------------------------------------------------------
 d_kelsey - 2006-10-23 18:21 CEST
----------------------------------------------------------------------
Appologies, I entered this under the wrong category.

----------------------------------------------------------------------
 derick - 2006-10-23 22:36 CEST
----------------------------------------------------------------------
Fixed in CVS. Please note that this was only a problem with numeric keys.

Bug History
Date Modified Username Field Change
======================================================================
2006-10-23 17:57d_kelsey New Bug
2006-10-23 17:57d_kelsey Bug Monitored: d_kelsey
2006-10-23 18:21d_kelsey Bugnote Added: 0000481
2006-10-23 22:36derick Bugnote Added: 0000483
2006-10-23 22:36derick Status new => closed
======================================================================
Received on Mon Oct 23 2006 - 22:36:21 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST