View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001272 | Xdebug | Uncategorized | public | 2016-02-16 10:49 | 2017-12-02 18:36 |
| Reporter | SvetlanaZem | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.3.3 | ||||
| Target Version | 2.6.0 | Fixed in Version | 2.6.0alpha1 | ||
| Summary | 0001272: property_get doesn't return attributes for SimpleXMLElement | ||||
| Description | Try to get attributes for SimpleXmlElement, i.e. $e = new SimpleXmlElement($xml); get value for $e->@attributes. Xdebug 2.3.3 response as there are no children: <- property_get -i 19 -n $e->@attributes -d 0 -c 0 -p 0 While Xdebug 2.2.6 successfully returns child attributes: <- property_get -i 17 -n $e->@attributes -d 0 -c 0 -p 0 | ||||
| Steps To Reproduce | Create code: $xml = "<a att1='att-a'><b attb='attb-1'><b attb='attb-2'></a>"; $e = new SimpleXmlElement($xml); foreach($e->b as $b) { // breakpoint here 1) Stop on breakpoint Expected: Actual: | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.6.5-5.6.9 | ||||