Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adeel's avatar

Maximum function nesting level of '100' reached, aborting!

FatalErrorException in ClassLoader.php line 314: Maximum function nesting level of '100' reached, aborting!

I tried to update composer but it didn't help. After searching this error on google I found that xdebug.max_nesting_level = 1000 is solving this issue. But i am using wamp on windows so i cannot find xdebug.max_nesting_level in php.ini file.

Any Idea?

0 likes
8 replies
martinbean's avatar

@adeel Please search before posting a question. This has come up time and time again.

Search “maximum function level 100” and you’ll find the solution.

adeel's avatar

i searched before posting (i have also mentioned this is Discussion) But i was missing something. ITs working now. thanks

gurpreet's avatar

hey adeel. I am also getting same error with wamp. did composer update too but it did not work. How did you get it to work?

1 like
sameermalikrp's avatar

please tell me when that bug occurred specifically which route and all details

adeel's avatar
adeel
OP
Best Answer
Level 1

@gurpreet
Add
xdebug.max_nesting_level = 500
At the end of php.ini file in apache directory
( C:\wamp\bin\apache\apache2.4.9\bin )

2 likes
s_chahal's avatar

@gurpreet - i noticed that if i comment out the

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"

in C:\wamp\bin\php\php5.5.12\php.ini the error goes away. there is no need to add the

xdebug.max_nesting_level = 500

Could you verify this?

Please or to participate in this conversation.