mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Increase xdebug.max_nesting_level to 1000 if required in bin/console script
Fix issue #411
This commit is contained in:
parent
7239aef47f
commit
a1c680d14d
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,13 @@
|
|||
use App\Kernel;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
|
||||
//Increase xdebug.max_nesting_level to 1000 if required (see issue #411)
|
||||
//Check if xdebug extension is active, and xdebug.max_nesting_level is set to 256 or lower
|
||||
if (extension_loaded('xdebug') && ((int) ini_get('xdebug.max_nesting_level')) <= 256) {
|
||||
//Increase xdebug.max_nesting_level to 1000
|
||||
ini_set('xdebug.max_nesting_level', '1000');
|
||||
}
|
||||
|
||||
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
||||
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue