View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002116 | Xdebug | Uncategorized | public | 2022-09-03 11:23 | 2022-11-27 20:56 |
Reporter | lordsimal | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | not fixable | ||
Product Version | 3.1.5 | ||||
Summary | 0002116: Fatal error: __debuginfo() must return an array with object passed via method parameter | ||||
Description | Xdebug throws a But only when that object is being passed down via a methods argument. For more details see https://github.com/LordSimal/xdebug-debuginfo-error | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 8.1.0-8.1.4 | ||||
|
Sorry to not explaining the issue directly in here but let me fix that with this note: This error can only be achieved via at least 2 classes: a Debugger and a ThrowsDebugInfo class Debugger.php contains one method which provides debugging info for a given object.
And ThrowsDebugInfo just throws an exception inside the __debugInfo() method.
The weird part is, that doing a try-catch manually over the ThrowsDebugInfo object does NOT throw an error:
but doing basically the same via the Debugger class (which contains a try-catch as well) breaks when xdebug is enabled
With the following error:
But ONLY when xdebug is enabled. If I unload the xdebug extension then the second code part also works without a problem. |
|
Xdebug can call |
|
Seems this was fixed with 3.1.6 as can be seen here: https://bugs.xdebug.org/view.php?id=00002100 |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-09-03 11:23 | lordsimal | New Issue | |
2022-09-07 20:48 | lordsimal | Note Added: 0006373 | |
2022-10-02 15:32 | derick | Note Edited: 0006373 | |
2022-10-02 15:36 | derick | Assigned To | => derick |
2022-10-02 15:36 | derick | Status | new => resolved |
2022-10-02 15:36 | derick | Resolution | open => not fixable |
2022-10-02 15:36 | derick | Note Added: 0006382 | |
2022-11-27 20:56 | lordsimal | Note Added: 0006456 |