[xdebug-dev] xdebug xdebug/xdebug_var.c would show the first page of a level too deep as well.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Mon, 23 Oct 2006 22:33:22 +0200

Date: Mon Oct 23 22:33:21 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
- Fixed bug #214: The depth level of arrays was incorrectly checked so it
  would show the first page of a level too deep as well.

Modified files:
           xdebug/xdebug_var.c (version: 1.76)

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- xdebug/xdebug_var.c:1.75 Sat Oct 07 21:10:33 2006 GMT
+++ xdebug/xdebug_var.c Mon Oct 23 18:33:21 2006 GMT
@@ -676,7 +676,7 @@
                         xdebug_xml_add_attribute(node, "children", myht->nNumOfElements > 0?"1":"0");
                         if (myht->nApplyCount < 1) {
                                 xdebug_xml_add_attribute_ex(node, "numchildren", xdebug_sprintf("%d", myht->nNumOfElements), 0, 1);
- if (level <= options->max_depth) {
+ if (level < options->max_depth) {
                                         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);
@@ -708,7 +708,7 @@
                         if (myht) {
                                 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) {
+ if (level < options->max_depth) {
                                                 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);
Received on Mon Oct 23 2006 - 22:33:27 BST

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