MantisBT - Xdebug
View Issue Details
0000976XdebugUsage problems (Wrong Results)public2013-09-17 04:012013-10-14 01:43
pvasilevich 
derick 
normalcrashalways
closedfixed 
2.2.3 
2.2.4 
5.5-dev
0000976: XDebug crashes if current varibles scope contains COM object
If you are working with COM objects, for example with Excel, XDebug crashes trying to display content of such variable in debugger
1. create sample script:
<?php

$ex = new COM("Excel.Application", NULL, CP_UTF8);
$wb = $ex->Application->Workbooks->Add(); // <-- set breakpoint to this line in debugger.

2. launch this script under debugger
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
No tags attached.
has duplicate 0000873resolved derick Crash viewing COM object properties in Eclipse PDT 
has duplicate 0001014resolved derick trying to create COM objects cause crash 
? com-crash-patch (739) 2013-09-17 04:03
https://bugs.xdebug.org/file_download.php?file_id=186&type=bug
Issue History
2013-09-17 04:01pvasilevichNew Issue
2013-09-17 04:03pvasilevichFile Added: com-crash-patch
2013-09-17 04:04pvasilevichNote Added: 0002556
2013-09-28 13:44derickNote Added: 0002559
2013-09-29 15:59pvasilevichNote Added: 0002570
2013-10-14 01:43derickNote Added: 0002583
2013-10-14 01:43derickStatusnew => closed
2013-10-14 01:43derickAssigned To => derick
2013-10-14 01:43derickResolutionopen => fixed
2013-10-14 01:43derickFixed in Version => 2.2.4
2014-02-27 19:41derickRelationship addedhas duplicate 0000873
2014-03-02 14:16derickRelationship addedhas duplicate 0001014
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0002556)
pvasilevich   
2013-09-17 04:04   
Added patch to fix this problem
(0002559)
derick   
2013-09-28 13:44   
Thanks for this! I've your patch in a branch - are you okay with me crediting this to "your name" <your email address>?
(0002570)
pvasilevich   
2013-09-29 15:59   
ok :)
(0002583)
derick   
2013-10-14 01:43   
Thanks again for the patch! It's merged now.