View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000183 | Xdebug | Usage problems (Wrong Results) | public | 2006-05-10 10:37 | 2006-05-27 21:12 |
Reporter | Tindu | Assigned To | |||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | open | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000183: 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. | ||||
Additional Information | This issue was reported first in general list and was kind of fixed (string "$this-" crashed the property_get) | ||||
Tags | No tags attached. | ||||
Operating System | WIN XP | ||||
PHP Version | 5.1.2 | ||||
|
The code in CVS is: if (keyword) { retval = fetch_zval_from_symbol_table(st, keyword, keyword_end - keyword, type, current_classname, cc_length T if (retval) { if (current_classname) { efree(current_classname); } current_classname = fetch_classname_from_zval(retval, &cc_length TSRMLS_CC); st = fetch_ht_from_zval(retval TSRMLS_CC); } keyword = NULL; } as you can see I only fetch the classname when retval is not NULL. So please try latest CVS, or the windows binary from http://pecl4win.php.net/ext.php/php_xdebug.dll |
|
This should be fixed in CVS by now. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-05-10 10:37 | Tindu | New Issue | |
2006-05-10 10:42 | derick | Note Added: 0000406 | |
2006-05-27 21:12 | derick | Status | new => closed |
2006-05-27 21:12 | derick | Note Added: 0000415 | |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |