View Issue Details

IDProjectCategoryView StatusLast Update
0000864Xdebugpublic2015-06-14 18:33
Reporternaitsirch Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Fixed in Version2.3.3 
Summary0000864: No Attributes are shown if an Object extends ArrayIterator
Description

Hi,
when I instantiate a class which extends PHP's ArrayIterator and add some further attributes to the class, the object is just shown as an empty object by xdebug.

Best regards.

TagsNo tags attached.
Operating SystemWin 7
PHP Version5.3.13

Relationships

duplicate of 0000686 closedderick Not possible to inspect SplObjectStorage instances with Xdebug 

Activities

naitsirch

2012-07-02 06:53

reporter   ~0002316

Here a small script to reproduce:

<?php
class A extends ArrayIterator
{
protected $aa;
public function construct()
{
$this->aa = 302;
parent::
construct(array());
}
}

$a = new A();
print_r($a); // put breakpoint here
?>

The script's output is:
A Object
(
[aa:protected] => 302
[storage:ArrayIterator:private] => Array
(
)

)

I have tested it in Xdebug Version 2.1.4 and 2.2.0

derick

2014-02-27 19:38

administrator   ~0002704

CLosing as a duplicate of 0000686.

derick

2015-06-14 18:33

administrator   ~0003118

This wasn't actually a duplicate. Closing it now though, as it's fixed for Xdebug 2.2.3 and 3.0dev. Thanks for the report!