Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmohammed husseini
Courses Plus Student 49 PointsHi
my Q is how i can set xdebug.max_nesting_level to 256
1 Answer
Codin - Codesmite
8,600 PointsLocate "xdebug.ini" on your server (location can be different depening on operating system and configuration, it is usually located in the folder where your xdebug extension is installed).
In "xdebug.ini" find "xdebug.max_nesting_level=" and change the value to 256. If you cannnot find "xdebug.max_nesting_level=" in the file, just add "xdebug.max_nesting_level=256" to the end of the file. This sets the default.
You can also add this line to your "php.ini" and it will also set the default value.
Or you can change it on the fly with php like this:
<?php
ini_set('xdebug.max_nesting_level', 256);
?>
Changing the value from within your PHP script will only use the value while the script is running, once the script ends, the value will return to the default value set in the .ini file.
Sergey Podgornyy
20,660 PointsSergey Podgornyy
20,660 PointsCan you concretize your question please?