[xdebug-dev] xdebug xdebug/xdebug_var.c - Fixed bug #103: crash when running the DBGp command 'eval' on a global

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 4 Dec 2004 22:45:46 +0100

Date: Sat Dec 4 22:45:46 CET 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Fixed bug #103: crash when running the DBGp command 'eval' on a global
  variable

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

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- xdebug/xdebug_var.c:1.54 Tue Nov 16 12:42:39 2004 GMT
+++ xdebug/xdebug_var.c Sat Dec 04 20:45:46 2004 GMT
@@ -442,12 +442,15 @@
                 modifier = xdebug_get_property_info(hash_key->arKey, &prop_name);
                 xdebug_xml_add_attribute(node, "name", prop_name);
                 /* XXX static vars? */
- if (parent_name[0] != '$') {
- full_name = xdebug_sprintf("$%s->%s", parent_name, prop_name);
- } else {
- full_name = xdebug_sprintf("%s->%s", parent_name, prop_name);
+
+ if (parent_name) {
+ if (parent_name[0] != '$') {
+ full_name = xdebug_sprintf("$%s->%s", parent_name, prop_name);
+ } else {
+ full_name = xdebug_sprintf("%s->%s", parent_name, prop_name);
+ }
+ xdebug_xml_add_attribute_ex(node, "fullname", full_name, 0, 1);
                 }
- xdebug_xml_add_attribute_ex(node, "fullname", full_name, 0, 1);
                 xdebug_xml_add_attribute(node, "facet", modifier);
         }
         xdebug_xml_add_attribute_ex(node, "address", xdebug_sprintf("%ld", (long) *zv), 0, 1);
Received on Sat Dec 04 2004 - 22:45:53 GMT

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