View Issue Details

IDProjectCategoryView StatusLast Update
0000940Xdebugpublic2013-05-18 21:09
Reporterjtreminio Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionduplicate 
PlatformLinuxOSDebianOS Version2.6.32-46
Product Version2.2.1 
Summary0000940: xdebug quits when it reaches an object cast to array that contained protected properties
Description

xdebug quits session when it reaches an object, that contains protected properties, that has been cast to an array.

Steps To Reproduce

<?php
class foo {
protected $_type;

public function __construct()
{
    $this->_type = 'profile';
}

}

// Place breakpoint at line below
$foo = new foo();

// xdebug crashes when it goes past line below
$bar = (array) $foo;

// This code will still be run, without debug
var_dump($foo);
var_dump($bar);

Additional Information

PHP itself does not segfault and continues execution.

TagsNo tags attached.
Operating System
PHP Version5.3.10

Relationships

duplicate of 0000924 resolvedderick $test = array("\0" => ''); renders variable view inoperable 

Activities

jtreminio

2013-04-04 20:37

reporter   ~0002451

$ php -v

PHP 5.3.10 (cli) (built: Jan 30 2013 09:29:03)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.3.0dev, Copyright (c) 2002-2012, by Derick Rethans

Also tested with

PHP 5.4.13 (cli) (built: Mar 16 2013 13:38:08)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

and

PHP 5.3.22 (cli) (built: Feb 22 2013 00:34:22)
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
with test_helpers v1.0.1-dev, Copyright (c) 2009-2012, by Johannes Schlueter, Scott

derick

2013-05-18 21:09

administrator   ~0002470

Xdebug doesn't actually crash, the IDE seems to be closing the connection. This is a duplicate of 924 which has a better description.

Issue History

Date Modified Username Field Change
2013-04-04 20:36 jtreminio New Issue
2013-04-04 20:37 jtreminio Note Added: 0002451
2013-05-18 21:09 derick Note Added: 0002470
2013-05-18 21:09 derick Relationship added duplicate of 0000924
2013-05-18 21:09 derick Status new => resolved
2013-05-18 21:09 derick Resolution open => duplicate
2013-05-18 21:09 derick Assigned To => derick
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)