[xdebug-general] Re: $this construct crashes the debugger

From: Derick Rethans <derick[@]xdebug.org>
Date: Sat, 13 May 2006 19:44:01 +0200 (CEST)

On Wed, 10 May 2006, Hando Tint wrote:

> 1)
> xdebug_handler_dbgp.c
> in procedure
> int xdebug_dbgp_init(xdebug_con *context, int mode)
>
> send_message(context, response TSRMLS_CC);
> xdebug_xml_node_dtor(response);
>
> I think XG(remote_log_file) = NULL; is missing in front of this as
> send_message is using remote_log_file. Anyway I got the init part to crash
> already with the latest code without that fix.

I could not reproduce a crash here, although the code was indeed wrong.
I fixed this in CVS now.

> 2) if I am for example in main thread (not in an object method) and ask for
> variable $this->somethingthatdoesnotexist then I get to _xdebug_do_eval.
>
> res = zend_eval_string(eval_string, ret_zval, "xdebug eval" TSRMLS_CC);
>
> will crash and eval_string does have that $this... so something in Zend is
> crashing.

I can not reproduce this, so I'd need some more information:
- Which PHP version are you using?
- What is the test script?
- Which *exact* DBGp commands did you issue (a remote_log file would be
best).

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Sat May 13 2006 - 19:44:10 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST