View Issue Details

IDProjectCategoryView StatusLast Update
0000996XdebugUncategorizedpublic2015-04-05 23:53
ReporterSvetlanaZem Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.2.3 
Fixed in Version2.3.3 
Summary0000996: Can't evaluate property of class that extends ArrayObject
Description

<?php

class Clazz extends ArrayObject{

}

$a = new Clazz();
$a->b = array(1,2,3);

echo $a->b; //set breakpoint here

?>

Can't get $a->b via 'context_get' ("can not get property"), but the same property is successfully received via 'eval'.

Additional Information

The issue is reproducible on PhpStorm (http://youtrack.jetbrains.com/issue/WI-15975).

TagsNo tags attached.
Operating System
PHP Version5.5-dev

Activities

mistbow

2014-03-09 11:48

reporter   ~0002765

Same issue here with ArrayObject instances and PhpStorm 7.1.3.

mistbow

2015-02-16 16:20

reporter   ~0002993

Hi! This bug fix someday? What is the problem? Is it very difficult?
From 2013-10-31...

mattab

2015-03-30 01:47

reporter   ~0003053

Last edited: 2015-03-30 01:57

Hi there, at Piwik we also experience this issue. We are trying to optimise the algorithms and data structure of the leading open analytics platform. After making the refactor to have some of our objects use the ArrayObject feature (see https://github.com/piwik/piwik/pull/7570), we were hit by this bug which prevents us from debugging the code. Because we cannot debug the data structures (as explained in this issue), we decided not to implement the change for now, which prevents us from massive performance improvements.

That is to say we would love to have this feature in Xdebug :) Thank you for your consideration.

Btw we would be happy to sponsor the work to get it done, if this is a possibility (I've also emailed Derick to ask)

derick

2015-04-05 23:53

administrator   ~0003056

Fixed for Xdebug 2.3.3