PHPで再帰処理を100ループ以上に増やす

phpで再帰処理のループが100回以上になると、

Fatal error: Maximum function nesting level of ’100′ reached, aborting!

と、怒られてしまいますが、102回目ぐらいで終わるのに!という時は悔しいので、あまり褒められたことではないと思いますが、回数を伸ばしてしまったりすることもあります。

xdebugが入っている状態なら、

xdebug.max_nesting_level = 256

とすることで、値分、ネストの最大値が増やせます。
ご利用は計画的に。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">