View Issue Details

IDProjectCategoryView StatusLast Update
0000873XdebugUncategorizedpublic2016-12-03 23:59
Reporterrobertjohnson Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformWindowsOSXP SP3OS Version5.1 SP3
Product Version2.2.1 
Fixed in Version2.2.4 
Summary0000873: Crash viewing COM object properties in Eclipse PDT
Description

In Eclipse PDT, PHP crashes when a COM object is in scope.

Crash does not occur when Variables/Expressions is hidden, but still occurs when hovering over the COM object.

Whenever Eclipse tries to evaluate the object or expression in the debugger, PHP crashes.

Steps To Reproduce

On Windows, run a php script containing this, and step to the 2nd statement.

<?php
$conn = new COM('ADODB.Connection', NULL, CP_UTF8);

/* To crash PHP:

  • Hover over $conn->State
  • Open 'Variables' pane
  • Open 'Expressions' pane and watch $conn - value
  • shows as (Pending) then PHP crashes (attached png)
  • */

$state = $conn->State;
?>

Additional Information

Eclipse Juno Classic with installed PDT
PHP 5.4.5
Apache web server 2.2 + FCGID interface for PHP.

TagsNo tags attached.
Operating SystemWin XP SP3
PHP Version5.5.5-5.5.9

Relationships

duplicate of 0000976 closedderick XDebug crashes if current varibles scope contains COM object 

Activities

robertjohnson

2012-10-11 10:13

reporter   ~0002358

I have fixed this myself for now, by editing the com_dotnet extension, although the bug is in xdebug, and not com_dotnet.

zend_object_handlers.get_properties returns NULL in com_dotnet, which causes xdebug to crash.

Proof that this is a bug in xdebug:

<?php
$conn = new COM('ADODB.Connection', NULL, CP_UTF8);
var_dump($conn);
?>

Result without xdebug:
object(com)#1 (0) { }

Result with xdebug:
Internal Server Error/system exception (xdebug crashes PHP)

derick

2014-02-27 19:41

administrator   ~0002707

Duplicate of 0000976, which is fixed for 2.2.4/2.3.0.

robertjohnson

2014-06-09 11:45

reporter   ~0002844

Script:
<?php
$conn = new COM('ADODB.Connection', NULL, CP_UTF8);
var_dump($conn);
?>

Outputs:
object(com)#1 (0) { }

When xdebug is loaded, PHP crashes. Unfortunately the issue has not been fixed in xdebug 2.2.5 on PHP 5.5 NTS VC11

derick

2016-11-28 21:30

administrator   ~0003831

Is this still a problem for you?

derick

2016-12-03 23:59

administrator   ~0003890

The email bounced, so closing this.