View Issue Details

IDProjectCategoryView StatusLast Update
0002365XdebugUncategorizedpublic2025-09-17 10:00
Reportergggeek Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.1.2 
Summary0002365: ini setting error_prepend_string disregarded when a fatal error happens
Description

I have set up:

  • an auto_prepend_file, in eg. /etc/php/8.1/fpm/php.ini
  • and error_prepend_string, in that prepend file: ini_set('error_prepend_string', '<!-- TEST_ERROR_STRING -->');

When xdebug is off, and I run the code $x = new NoTAClass();, I get the expected error prepend string.

When xdebug is on, and I run the code $x = new NoTAClass();, I do not get the expected error prepend string any more.

Note that, with xdebug on, the error prepend string is shown as expected for non-fatal errors. such as for $x = $undefinedVar;

Additional Information

Tested with stock php 8.1.2 and xdebug from Ubuntu 22.04, but I suspect this is happening with other php versions too

TagsNo tags attached.
Operating Systemubuntu 22.04
PHP Version8.1.0-8.1.4

Activities

gggeek

2025-09-17 10:00

reporter   ~0007354

ps: it seems this might be a regression of https://bugs.xdebug.org/view.php?id=445

Issue History

Date Modified Username Field Change
2025-09-17 09:57 gggeek New Issue
2025-09-17 10:00 gggeek Note Added: 0007354