docksal / docksal

Unified, Docker 🐳 powered web development environments for macOS, Windows, and Linux
https://docksal.io
MIT License
687 stars 179 forks source link

Cannot modify xdebug.max_nesting_level from outside the cli container #1513

Open nicoschi opened 3 years ago

nicoschi commented 3 years ago

Description

Cannot modify xdebug.max_nesting_level needed to fix error like Error: Maximum function nesting level of '256' reached ........ which can sometimes happen when xdebug is enabled

Steps to reproduce the issue:

  1. create a php.ini and php-fpm.conf in .docksal/etc/php folder as described in documentation
  2. add
    [php]
    xdebug.max_nesting_level=-1

    in php.ini

and

[www]
xdebug.max_nesting_level=-1

in php-fpm.conf

  1. fin up

Describe the results you received:

phpinfo() still returns the default value (256)

It seems these values cannot override what set in /opt/docker-php-ext-xdebug.ini.

Workaround

Modifing xdebug.max_nesting_level directly inside the container in /opt/docker-php-ext-xdebug.ini produce the expected right result.

JDDoesDev commented 3 years ago

@nicoschi Can you paste the output of fin sysinfo?