View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001745 | Xdebug | Stacktraces | public | 2020-02-13 15:37 | 2020-02-27 16:19 |
Reporter | PirateKing | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 2.9.2 | ||||
Summary | 0001745: Xdebug removes args array from Exception trace array | ||||
Description | For some reason Xdebug removes the args array from Exception trace array as can be seen on the attached screenshots. PHP version: The issue does not exist with a PHP 7.4.2 image without Xdebug. I noticed this issue as we are upgrading our app from PHP 7.2 to 7.4 and our CI pipeline started failing because we have this line in the code: $propertyPath = $exception->getTrace()[0]['args'][1]; and the args array gets somehow removed by Xdebug which wasn't the case before. Our current CI pipeline which uses a PHP 7.2.24 image with Xdebug 2.9.1 does not have this issue. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | CentOS | ||||
PHP Version | 7.4.0-7.4.4 | ||||
|
Can you provide a self-contained example so that I can (try to) reproduce this? |
|
Minimal self-contained example: function testFoo($bar) try { This can be also reproduced in the web context. |
|
That outputs:
Which looks correct to me? |
|
Sorry for the false issue (this is not related to Xdebug after all), further debugging showed that this was due to the new zend.exception_ignore_args INI directive which was added in PHP 7.4 : https://www.php.net/manual/en/migration74.other-changes.php |
|
OK. Thanks for checking! I'll make sure to add a test so this won't get lost. |
|
Closing this out - thanks for telling me what went wrong :-) |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-02-13 15:37 | PirateKing | New Issue | |
2020-02-13 15:37 | PirateKing | File Added: Screenshot from 2020-02-13 15-49-03.png | |
2020-02-13 15:37 | PirateKing | File Added: Screenshot from 2020-02-13 16-05-53.png | |
2020-02-13 15:49 | derick | Assigned To | => derick |
2020-02-13 15:49 | derick | Status | new => feedback |
2020-02-13 15:49 | derick | Note Added: 0005242 | |
2020-02-13 16:08 | PirateKing | Note Added: 0005243 | |
2020-02-13 16:08 | PirateKing | Status | feedback => assigned |
2020-02-14 18:36 | derick | Note Added: 0005245 | |
2020-02-17 15:26 | PirateKing | Note Added: 0005246 | |
2020-02-17 16:23 | derick | Note Added: 0005247 | |
2020-02-27 16:19 | derick | Status | assigned => resolved |
2020-02-27 16:19 | derick | Resolution | open => no change required |
2020-02-27 16:19 | derick | Note Added: 0005262 |