etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Maximum function nesting level of '100' reached #185

Open berpcor opened 8 years ago

berpcor commented 8 years ago

I use Laravel 5. I have an array and I use buildTree method. I get 'Maximum function nesting level of '100' reached' error message. Is it normal for the method, should I increase max level of recursion in my php settings?

afraca commented 8 years ago

This is an xdebug issue. Apparently Laravel 4 was close to the limit, and Laravel 5 abstracts some more, causing this error. I fixed this by updating my xdebug (they increased it themselves) (I think it was 2.2.x or something, now 2.3.x), or you could increase the limit to 150 in your .ini fiile for xdebug.