View Issue Details

IDProjectCategoryView StatusLast Update
0001411XdebugUncategorizedpublic2020-03-12 18:01
Reportersebastian Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
PlatformirrelevantOSirrelevantOS Versionirrelevant
Product Version2.5.1 
Target Version2.6.0Fixed in Version2.6.0alpha1 
Summary0001411: Use Error (Throwable) instead of fatal error when maximum nesting level is reached
Description

The fact that Xdebug triggers a fatal error is an anachronism that does not fit in this day and age of PHP 7.

It would be great if Xdebug triggered an Error instead that can be handled using try/catch.

Steps To Reproduce

$ cat f.php
<?php
function f() { f(); }
f();

$ php -d xdebug.max_nesting_level=2 f.php
PHP Fatal error: Maximum function nesting level of '2' reached, aborting! in /home/sb/f.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/sb/f.php:0
PHP 2. f() /home/sb/f.php:3

TagsNo tags attached.
Operating System
PHP Version7.1.0-7.1.4

Activities

derick

2017-04-17 19:46

administrator   ~0004274

Fixed for Xdebug 2.6.0-dev.