View Issue Details

IDProjectCategoryView StatusLast Update
0002365XdebugUncategorizedpublic2025-11-05 17:57
Reportergggeek Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1.2 
Target Version3.5devFixed in Version3.4dev 
Summary0002365: INI settings error_prepend_string and error_append_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

derick

2025-11-05 15:59

administrator   ~0007386

https://github.com/xdebug/xdebug/pull/1045

Issue History

Date Modified Username Field Change
2025-09-17 09:57 gggeek New Issue
2025-09-17 10:00 gggeek Note Added: 0007354
2025-11-05 15:58 derick Target Version => 3.5dev
2025-11-05 15:58 derick Summary ini setting error_prepend_string disregarded when a fatal error happens => INI settings error_prepend_string and error_append_string disregarded when a fatal error happens
2025-11-05 15:59 derick Note Added: 0007386
2025-11-05 17:57 derick Assigned To => derick
2025-11-05 17:57 derick Status new => closed
2025-11-05 17:57 derick Resolution open => fixed
2025-11-05 17:57 derick Fixed in Version => 3.4dev