View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000987 | Xdebug | Step Debugging | public | 2013-10-17 16:04 | 2020-03-12 17:19 |
Reporter | dm | Assigned To | derick | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.2.0 | ||||
Fixed in Version | 2.2.4 | ||||
Summary | 0000987: Hidden property names not shown | ||||
Description | Using array-object cast, we can create "hidden" variables/properties (explained here: http://nikic.github.io/2012/03/28/Understanding-PHPs-internal-array-implementation.html#the_symtable). When using xdebug to var_dump such object, property name/variable key is missing. When using regular var_dump, it's shown properly. | ||||
Steps To Reproduce | <?php $object = (object) ['key' => 'value', 1 => 0]; var_dump($object); | ||||
Additional Information | Should produce something like: object(stdClass)#1 (2) { ["key"]=> string(5) "value" [1]=> int(0) } Instead we get (missing key 1): object(stdClass)[1] Casting $object to array shows that property/key/variable really exists. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.4.10-5.4.14 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-17 16:04 | dm | New Issue | |
2013-10-22 15:49 | derick | Note Added: 0002594 | |
2013-10-22 15:49 | derick | Assigned To | => derick |
2013-10-22 15:49 | derick | Status | new => assigned |
2013-11-25 21:58 | derick | Note Added: 0002621 | |
2013-11-25 21:58 | derick | Status | assigned => closed |
2013-11-25 21:58 | derick | Resolution | open => fixed |
2013-11-25 21:58 | derick | Fixed in Version | => 2.2.4 |
2020-03-12 16:55 | derick | Severity | minor => feature |
2020-03-12 17:19 | derick | Category | Feature/Change request => Step Debugging |