[xdebug-dev] xdebug xdebug/xdebug_var.c - Fixed Komodo bug 45484: no member data for objects in PHP debugger.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 13 Apr 2006 00:26:32 +0200

Date: Thu Apr 13 00:26:32 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed Komodo bug 45484: no member data for objects in PHP debugger.

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

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- xdebug/xdebug_var.c:1.68 Wed Feb 22 20:29:00 2006 GMT
+++ xdebug/xdebug_var.c Wed Apr 12 20:26:32 2006 GMT
@@ -574,6 +574,15 @@
                                         xdebug_xml_add_attribute_ex(node, "numchildren", xdebug_sprintf("%d", zend_hash_num_elements(myht)), 0, 1);
                                         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);
+ 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 {
+ options->runtime[level].start_element_nr = 0;
+ options->runtime[level].end_element_nr = options->max_children;
+ }
                                                 zend_hash_apply_with_arguments(myht, (apply_func_args_t) xdebug_object_element_export_xml_node, 4, level, node, name, options);
                                         }
                                 } else {
Received on Thu Apr 13 2006 - 00:26:34 BST

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