View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002443 | Xdebug | Uncategorized | public | 2026-10-24 09:07 | 2026-10-24 09:07 |
| Reporter | rolfvandekrol | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0002443: Array items are transformed into references during exceptions handling | ||||
| Description | With xdebug (develop mode) enabled the script in 'Steps to Reproduce' gives another output than with xdebug off. The product version field does not allow me to select xdebug 3.5.3, but this is in 3.5.3. I verified this in PHP 8.4.24 and PHP 8.4.26. What seems to happen: I encountered this issue in a real world application where my tests would fail with xdebug on and would pass with xdebug off. | ||||
| Steps To Reproduce | Use the following script
With xdebug off, the output is
With xdebug on, the output is
In the script reflection is used. The reflection is only there to be able to show the text '... is (not) a reference'. Removing the reflection logic does not change the behavior. | ||||
| Additional Information | AI disclaimer: | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.5.0-8.5.4 | ||||