[xdebug-dev] xdebug xdebug/xdebug_handler_dbgp.c - fix retrieving static vars in classes

From: Shane Caraveo <shane[@]caraveo.com>
Date: Tue, 1 Feb 2005 03:28:02 +0100

Date: Tue Feb 1 03:28:02 CET 2005
User: Shane Caraveo
Directory: xdebug

Log Message:
[0.5]
- fix retrieving static vars in classes
Modified files:
           xdebug/xdebug_handler_dbgp.c (version: 1.67)

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- xdebug/xdebug_handler_dbgp.c:1.66 Thu Nov 11 15:30:12 2004 GMT
+++ xdebug/xdebug_handler_dbgp.c Tue Feb 01 01:28:02 2005 GMT
@@ -1154,7 +1154,7 @@
         contents = get_symbol(name, name_length TSRMLS_CC);
         if (!contents && !no_eval) {
                 char *varname = NULL;
- if (var_only && name[0] != '$') {
+ if (var_only && name[0] != '$' && !strstr(name, "::$")) {
                         varname = xdebug_sprintf("$%s", name);
                 }
                 /* if we cannot get the value directly, then try eval */
@@ -1272,7 +1272,7 @@
         contents_found = get_symbol_contents(name, name_length, node TSRMLS_CC);
         if (!contents_found && !no_eval) {
                 char *varname = NULL;
- if (var_only && name[0] != '$') {
+ if (var_only && name[0] != '$' && !strstr(name, "::$")) {
                         varname = xdebug_sprintf("$%s", name);
                 }
                 /* if we cannot get the value directly, then try eval */
@@ -1672,7 +1672,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.66 $";
+ return "$Revision: 1.67 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Tue Feb 01 2005 - 03:28:06 GMT

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