View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002276 | Xdebug | Step Debugging | public | 2024-06-18 10:10 | 2024-08-07 15:22 |
Reporter | tefxacn | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.3.2 | ||||
Summary | 0002276: Custom error handler return true will stop Exception handlers from breaking - returning false will write to PHP error log though | ||||
Description | When using a custom error handler, I can Therefore, one must return false to make xdebug work - that's fine. There needs to be a way to tell xdebug to NOT bubble up the error to PHP's native error handler, to prevent errors ending up in the error log. e.g. xdebug_disable_next_error_bubble(); to skip bubbling of the next or xdebug_disable_error_bubble(); to disable it altogether; or possible a ini setting? | ||||
Steps To Reproduce |
Will not break (and not report the error anywhere in this simplified example) | ||||
Additional Information | Possible solution:
It will break at the error but not bubble the error to the PHP native error handler (bc xdebug itself will "return true;" basically) | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 8.2.0-8.2.9 | ||||
|
Worked around it by just doing:
in |
|
Hi, I don't think there is a bug here. By using set error handler, you are turning off normal error handling, and substituting your own. This is as you indicate, also documented. Xdebug's error handler will therefore also correctly not run. Your workaround is the correct way of handling this. However, when you say cheers, |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-06-18 10:10 | tefxacn | New Issue | |
2024-07-07 11:04 | tefxacn | Note Added: 0006983 | |
2024-08-07 15:22 | derick | Assigned To | => derick |
2024-08-07 15:22 | derick | Status | new => resolved |
2024-08-07 15:22 | derick | Resolution | open => fixed |
2024-08-07 15:22 | derick | Note Added: 0007041 | |
2024-08-07 15:22 | derick | Resolution | fixed => no change required |