Date: Thu Nov 4 23:10:37 CET 2004
User: Derick Rethans
Directory: xdebug
Log Message:
[0.50]
- Fixed bug #98: 'longname' attribute not returned for unintialized property
in context_get request.
Modified files:
xdebug/xdebug_handler_dbgp.c (version: 1.62)
[FILE: /xdebug/xdebug_handler_dbgp.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- xdebug/xdebug_handler_dbgp.c:1.61 Mon Nov 01 11:12:47 2004 GMT
+++ xdebug/xdebug_handler_dbgp.c Thu Nov 04 21:10:37 2004 GMT
@@ -1251,6 +1251,7 @@
static void attach_used_var_with_contents(void *xml, xdebug_hash_element* he)
{
char *name = (char*) he->ptr;
+ char *full_name;
xdebug_xml_node *node = (xdebug_xml_node *) xml;
xdebug_xml_node *contents;
TSRMLS_FETCH();
@@ -1260,7 +1261,14 @@
xdebug_xml_add_child(node, contents);
} else {
contents = xdebug_xml_node_init("property");
+ if (name[0] != '$') {
+ full_name = xdebug_sprintf("$%s", name);
+ } else {
+ full_name = xdstrdup(name);
+ }
xdebug_xml_add_attribute_ex(contents, "name", xdstrdup(name), 0, 1);
+ xdebug_xml_add_attribute_ex(contents, "fullname", xdstrdup(full_name), 0, 1);
+
xdebug_xml_add_attribute(contents, "type", "uninitialized");
xdebug_xml_add_child(node, contents);
}
@@ -1588,7 +1596,7 @@
char *xdebug_dbgp_get_revision(void)
{
- return "$Revision: 1.61 $";
+ return "$Revision: 1.62 $";
}
int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Thu Nov 04 2004 - 23:10:43 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST