1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00

Add note about xdebug.max_nesting_level

This commit is contained in:
nikic 2012-07-07 16:43:23 +02:00
parent eb5991227d
commit 25a7b2cbb9

View File

@ -14,6 +14,15 @@ The library needs to register a class autoloader; this is done by including the
require 'path/to/PHP-Parser/lib/bootstrap.php';
```
Additionally you may want to set the `xdebug.max_nesting_level` ini option to a higher value:
```php
<?php
ini_set('xdebug.max_nesting_level', 2000);
```
This ensures that there will be no errors when traversing highly nested node trees.
Parsing
-------