Date: Wed Oct 20 20:03:07 CEST 2004
User: Shane Caraveo
Directory: xdebug
Log Message:
[0.5]
- fix bad pointer in property_value
Modified files:
xdebug/xdebug_handler_dbgp.c (version: 1.60)
[FILE: /xdebug/xdebug_handler_dbgp.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- xdebug/xdebug_handler_dbgp.c:1.59 Wed Oct 20 05:35:46 2004 GMT
+++ xdebug/xdebug_handler_dbgp.c Wed Oct 20 16:03:07 2004 GMT
@@ -1206,6 +1206,7 @@
{
zval *var_data;
zval ret_zval;
+ zval *p_ret_zval = &ret_zval;
int res;
char *name = CMD_OPTION('n');
long context_id = 0, depth = 0;
@@ -1233,16 +1234,17 @@
if (var_data) {
/* XXX cheesy and lame, gets more than we want */
- xdebug_var_export_xml_node(&var_data, name, *retval, 0 TSRMLS_CC);
+ xdebug_var_export_xml_node(&p_ret_zval, name, *retval, 0 TSRMLS_CC);
+ zval_dtor(p_ret_zval);
} else {
/* if we cannot get the value directly, then try eval */
- res = _xdebug_do_eval(CMD_OPTION('n'), &ret_zval TSRMLS_CC);
+ res = _xdebug_do_eval(CMD_OPTION('n'), p_ret_zval TSRMLS_CC);
if (res == FAILURE) {
RETURN_RESULT(XG(status), XG(reason), XDEBUG_ERROR_PROPERTY_NON_EXISTANT);
} else {
/* XXX cheesy and lame, gets more than we want */
- xdebug_var_export_xml_node(&ret_zval, name, *retval, 0 TSRMLS_CC);
- zval_dtor(&ret_zval);
+ xdebug_var_export_xml_node(&p_ret_zval, name, *retval, 0 TSRMLS_CC);
+ zval_dtor(p_ret_zval);
}
}
}
@@ -1587,7 +1589,7 @@
char *xdebug_dbgp_get_revision(void)
{
- return "$Revision: 1.59 $";
+ return "$Revision: 1.60 $";
}
int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Wed Oct 20 2004 - 20:03:12 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST