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

后端 未结 22 2375
我寻月下人不归
我寻月下人不归 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 16:54

    on Ubuntu using PHP 5.59 :
    got to `:

    /etc/php5/cli/conf.d

    and find your xdebug.ini in that dir, in my case is 20-xdebug.ini

    and add this line `

    xdebug.max_nesting_level = 200


    or this

    xdebug.max_nesting_level = -1

    set it to -1 and you dont have to worry change the value of the nesting level.

    `

提交回复
热议问题