Solution for “Fatal error: Maximum function nesting level of '100' reached, aborting!” in PHP

后端 未结 22 2388
我寻月下人不归
我寻月下人不归 2020-11-22 16:45

I have made a function that finds all the URLs within an html file and repeats the same process for each html content linked to the discovered URLs. The function is recursiv

22条回答
  •  误落风尘
    2020-11-22 17:06

    A simple solution solved my problem. I just commented this line:

    zend_extension = "d:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9.dll
    

    in my php.ini file. This extension was limiting the stack to 100 so I disabled it. The recursive function is now working as anticipated.

提交回复
热议问题