View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000976 | Xdebug | Uncategorized | public | 2013-09-17 03:01 | 2013-10-14 00:43 |
Reporter | pvasilevich | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.2.3 | ||||
Fixed in Version | 2.2.4 | ||||
Summary | 0000976: XDebug crashes if current varibles scope contains COM object | ||||
Description | If you are working with COM objects, for example with Excel, XDebug crashes trying to display content of such variable in debugger | ||||
Steps To Reproduce |
$ex = new COM("Excel.Application", NULL, CP_UTF8);
| ||||
Additional Information | Crash appeared in method xdebug_var_export_xml_node() when trying to access properties of COM object: Z_OBJDEBUG_PP(struc, is_temp); returns NULL | ||||
Tags | No tags attached. | ||||
Attached Files | com-crash-patch (739 bytes)
--- D:/programming/xdebug/xdebug_var.c Tue Sep 17 10:02:33 2013 +++ D:/programming/xdebug/xdebug_var.c Tue Sep 17 09:19:20 2013 @@ -1286,7 +1286,10 @@ } /* Adding normal properties */ - zend_hash_apply_with_arguments(Z_OBJDEBUG_PP(struc, is_temp) XDEBUG_ZEND_HASH_APPLY_TSRMLS_CC, (apply_func_args_t) object_item_add_to_merged_hash, 2, merged_hash, (int) XDEBUG_OBJECT_ITEM_TYPE_PROPERTY); + myht = Z_OBJDEBUG_PP(struc, is_temp); + if (myht) { + zend_hash_apply_with_arguments(myht XDEBUG_ZEND_HASH_APPLY_TSRMLS_CC, (apply_func_args_t) object_item_add_to_merged_hash, 2, merged_hash, (int) XDEBUG_OBJECT_ITEM_TYPE_PROPERTY); + } #else /* Adding static properties */ if (CE_STATIC_MEMBERS(ce)) { | ||||
Operating System | |||||
PHP Version | 5.5-dev | ||||
|
Added patch to fix this problem |
|
Thanks for this! I've your patch in a branch - are you okay with me crediting this to "your name" <your email address>? |
|
ok :) |
|
Thanks again for the patch! It's merged now. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-09-17 03:01 | pvasilevich | New Issue | |
2013-09-17 03:03 | pvasilevich | File Added: com-crash-patch | |
2013-09-17 03:04 | pvasilevich | Note Added: 0002556 | |
2013-09-28 12:44 | derick | Note Added: 0002559 | |
2013-09-29 14:59 | pvasilevich | Note Added: 0002570 | |
2013-10-14 00:43 | derick | Note Added: 0002583 | |
2013-10-14 00:43 | derick | Status | new => closed |
2013-10-14 00:43 | derick | Assigned To | => derick |
2013-10-14 00:43 | derick | Resolution | open => fixed |
2013-10-14 00:43 | derick | Fixed in Version | => 2.2.4 |
2014-02-27 19:41 | derick | Relationship added | has duplicate 0000873 |
2014-03-02 14:16 | derick | Relationship added | has duplicate 0001014 |
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) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |