[xdebug-dev] xdebug xdebug/xdebug_var.c - Fixed TS compile in PHP < 5.3.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 2 Jul 2009 11:03:41 +0200

Date: Thu Jul 2 11:03:41 CEST 2009
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed TS compile in PHP < 5.3.

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

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- xdebug/xdebug_var.c:1.97 Thu May 07 18:39:13 2009 GMT
+++ xdebug/xdebug_var.c Thu Jul 02 07:03:41 2009 GMT
@@ -463,7 +463,7 @@
         return 0;
 }
 
-static int xdebug_object_element_export_xml(zval **zv TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
+static int xdebug_object_element_export_xml(zval **zv XDEBUG_ZEND_HASH_APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
 {
         int level;
         xdebug_str *str;
@@ -747,10 +747,23 @@
 
                 case IS_OBJECT:
                         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");
                         Z_OBJ_HANDLER(**struc, get_class_name)(*struc, &class_name, &class_name_len, 0 TSRMLS_CC);
                         xdebug_xml_add_attribute_ex(node, "classname", xdstrdup(class_name), 0, 1);
+
+ /** Temporary additional property **/
+ {
+ xdebug_xml_node *pnode;
+
+ pnode = xdebug_xml_node_init("property");
+ xdebug_xml_add_attribute(pnode, "name", "CLASSNAME");
+ xdebug_xml_add_attribute(pnode, "type", "string");
+ xdebug_xml_add_text(pnode, xdstrdup(class_name));
+ xdebug_xml_add_child(node, pnode);
+ }
+
                         if (myht) {
                                 if (myht->nApplyCount < 1) {
                                         xdebug_xml_add_attribute_ex(node, "numchildren", xdebug_sprintf("%d", zend_hash_num_elements(myht)), 0, 1);
Received on Thu Jul 02 2009 - 11:03:44 BST

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