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:
create a php.ini and php-fpm.conf in .docksal/etc/php folder as described in documentation
add
[php]
xdebug.max_nesting_level=-1
in php.ini
and
[www]
xdebug.max_nesting_level=-1
in php-fpm.conf
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.
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 enabledSteps to reproduce the issue:
in php.ini
and
in php-fpm.conf
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.