[xdebug-dev] svn: /xdebug/trunk/ xdebug_var.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 29 Dec 2009 15:09:29 +0000

derick Tue, 29 Dec 2009 15:09:29 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=3174

Log:
- Fixed bug #417: response of context_get may lack page and pagesize
  attributes.

Changed paths:
    U xdebug/trunk/xdebug_var.c

Modified: xdebug/trunk/xdebug_var.c
===================================================================
--- xdebug/trunk/xdebug_var.c 2009-12-29 15:09:05 UTC (rev 3173)
+++ xdebug/trunk/xdebug_var.c 2009-12-29 15:09:29 UTC (rev 3174)
@@ -612,10 +612,10 @@
                         if (myht->nApplyCount < 1) {
                                 xdebug_xml_add_attribute_ex(node, "numchildren", xdebug_sprintf("%d", myht->nNumOfElements), 0, 1);
                                 if (level < options->max_depth) {
+ xdebug_xml_add_attribute_ex(node, "page", xdebug_sprintf("%d", options->runtime[level].page), 0, 1);
+ xdebug_xml_add_attribute_ex(node, "pagesize", xdebug_sprintf("%d", options->max_children), 0, 1);
                                         options->runtime[level].current_element_nr = 0;
                                         if (level == 0 && myht->nNumOfElements > options->max_children) {
- xdebug_xml_add_attribute_ex(node, "page", xdebug_sprintf("%d", options->runtime[level].page), 0, 1);
- xdebug_xml_add_attribute_ex(node, "pagesize", xdebug_sprintf("%d", options->max_children), 0, 1);
                                                 options->runtime[level].start_element_nr = options->max_children * options->runtime[level].page;
                                                 options->runtime[level].end_element_nr = options->max_children * (options->runtime[level].page + 1);
                                         } else {
@@ -633,9 +633,9 @@
                         myht = Z_OBJPROP_PP(struc);

                         xdebug_xml_add_attribute(node, "type", "object");
- xdebug_xml_add_attribute(node, "children", (myht && zend_hash_num_elements(myht))?"1":"0");
                         zend_get_object_classname(*struc, &class_name, &class_name_len TSRMLS_CC);
                         xdebug_xml_add_attribute_ex(node, "classname", xdstrdup(class_name), 0, 1);
+ xdebug_xml_add_attribute(node, "children", (myht && zend_hash_num_elements(myht))?"1":"0");

                         /** Temporary additional property **/
                         {
@@ -652,10 +652,10 @@
                                 if (myht->nApplyCount < 1) {
                                         xdebug_xml_add_attribute_ex(node, "numchildren", xdebug_sprintf("%d", zend_hash_num_elements(myht)), 0, 1);
                                         if (level < options->max_depth) {
+ xdebug_xml_add_attribute_ex(node, "page", xdebug_sprintf("%d", options->runtime[level].page), 0, 1);
+ xdebug_xml_add_attribute_ex(node, "pagesize", xdebug_sprintf("%d", options->max_children), 0, 1);
                                                 options->runtime[level].current_element_nr = 0;
                                                 if (level == 0 && myht->nNumOfElements > options->max_children) {
- xdebug_xml_add_attribute_ex(node, "page", xdebug_sprintf("%d", options->runtime[level].page), 0, 1);
- xdebug_xml_add_attribute_ex(node, "pagesize", xdebug_sprintf("%d", options->max_children), 0, 1);
                                                         options->runtime[level].start_element_nr = options->max_children * options->runtime[level].page;
                                                         options->runtime[level].end_element_nr = options->max_children * (options->runtime[level].page + 1);
                                                 } else {
Received on Tue Dec 29 2009 - 15:09:30 GMT

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