Chad 2010-07-27

I'm using Symfony to forward requests back and forth just in order to show several item admin lists generated by admin-generator in the same page.

Everything goes fine until I add the fourth forward. I met this error:

Code - HTMLPlain Text
 
  1. Fatal error: Maximum function nesting level of '100' reached  

This is actually caused by the xdebug. There's an option of xdebug about this2:

Code - TextPlain Text
 
  1. xdebug.max_nesting_level  
  2. Type: integer, Default value: 100  
  3. Controls the protection mechanism for infinite recursion protection. The value of this setting is the maximum level of nested functions that are allowed before the script will be aborted.  

After I add the following line in the php.ini, everything goes straight again:

Code - php.iniPlain Text
 
  1. xdebug.max_nesting_level = 200  

 

References:

1. http://coding.derkeiler.com/Archive/PHP/php.general/2007-10/msg01110.html

2. http://www.xdebug.org/docs/all_settings