[xdebug-dev] Bug 0000183: property_get on $this->undefinedvariable

From: <xdebug-dev[@]lists.xdebug.org>
Date: Wed, 10 May 2006 11:37:46 +0200

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000183
======================================================================
Reporter: Tindu
Handler:
======================================================================
Project: Xdebug
Bug ID: 183
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: new
Operating System: WIN XP
PHP Version: 5.1.2
Xdebug Version: 2.0.0beta4
======================================================================
Date Submitted: 2006-05-10 11:37 CEST
Last Modified: 2006-05-10 11:37 CEST
======================================================================
Summary: property_get on $this->undefinedvariable
Description:
property_get -n $this->somethingnonexistent crashes the debugger. In source
code:

retval = fetch_zval_from_symbol_table(st, keyword, keyword_end - keyword,
type, current_classname, cc_length TSRMLS_CC);
current_classname = fetch_classname_from_zval(retval, &cc_length
TSRMLS_CC);
if (retval) {
        st = fetch_ht_from_zval(retval TSRMLS_CC);
}
keyword = NULL;

As retval may be nill then fetch_class_name crashes.
If this issue is fixed then for some weird reason
        res = zend_eval_string(eval_string, ret_zval, "xdebug eval" TSRMLS_CC);
crashes in _xdebug_do_eval.
======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2006-05-10 11:37Tindu New Bug
2006-05-10 11:37Tindu Bug Monitored: Tindu
======================================================================
Received on Wed May 10 2006 - 11:37:51 BST

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