Date: Tue Jan 17 23:19:48 CET 2006
User: Derick Rethans
Directory: xdebug
Log Message:
[0.50]
- Fixed bug #121: property_get -n $r[2] returns the whole hash.
Modified files:
xdebug/xdebug_handler_dbgp.c (version: 1.77)
[FILE: /xdebug/xdebug_handler_dbgp.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- xdebug/xdebug_handler_dbgp.c:1.76 Tue Jan 17 20:35:41 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Tue Jan 17 21:19:48 2006 GMT
@@ -433,10 +433,16 @@
}
break;
case 3:
+ /* Associative arrays */
if (*p[0] == '\'') {
state = 4;
keyword = *p + 1;
}
+ /* Numerical index */
+ if (*p[0] >= '0' && *p[0] <= '9') {
+ state = 6;
+ keyword = *p;
+ }
break;
case 4:
if (*p[0] == '\'') {
@@ -455,6 +461,18 @@
state = 1;
}
break;
+ case 6:
+ if (*p[0] == ']') {
+ state = 1;
+ keyword_end = *p;
+ retval = fetch_zval_from_symbol_table(st, keyword, keyword_end - keyword, type, current_classname, cc_length TSRMLS_CC);
+ current_classname = NULL;
+ if (retval) {
+ st = fetch_ht_from_zval(retval TSRMLS_CC);
+ }
+ keyword = NULL;
+ }
+ break;
}
(*p)++;
}
@@ -1890,7 +1908,7 @@
char *xdebug_dbgp_get_revision(void)
{
- return "$Revision: 1.76 $";
+ return "$Revision: 1.77 $";
}
int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Tue Jan 17 2006 - 23:19:56 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST