[xdebug-dev] xdebug xdebug/xdebug_handler_dbgp.c - Make property_get -n $r['keyName'] actually work without segfaulting.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 17 Jan 2006 22:35:42 +0100

Date: Tue Jan 17 22:35:42 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Make property_get -n $r['keyName'] actually work without segfaulting.
#- Numerical indices are next.

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

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- xdebug/xdebug_handler_dbgp.c:1.75 Sun Jan 01 14:27:27 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Tue Jan 17 20:35:41 2006 GMT
@@ -287,14 +287,13 @@
 
         switch (type) {
                 case XF_ST_ROOT:
+ case XF_ST_ARRAY_INDEX:
                         element = prepare_search_key(name, &name_length, "", 0);
                         if (ht && zend_hash_find(ht, element, name_length + 1, (void **) &retval_pp) == SUCCESS) {
                                 retval_p = *retval_pp;
                                 goto cleanup;
                         }
                         break;
- case XF_ST_ARRAY_INDEX:
- break;
                 case XF_ST_OBJ_PROPERTY:
                         /* First we try a public property */
                         element = prepare_search_key(name, &element_length, "", 0);
@@ -1891,7 +1890,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.75 $";
+ return "$Revision: 1.76 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Tue Jan 17 2006 - 22:35:46 GMT

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