Closed Chi-teck closed 6 months ago
Sounds like https://github.com/wodby/php/issues/58#issuecomment-610737418 again. Its bitten many people, unfortunately.
We probably need to get rid of this env var completely, the default mode off
should have close to 0 performance impact and in any case we still have PHP_EXTENSIONS_DISABLE
That makes sense. Thanks.
I would like to enable/disable xdebug extension from environment variable which is configured in .env file. I put the following statement to the docker-compose.yml file but it did not work out by some reason.
I guess this condition is evaluated to true when the variable holds an empty string. https://github.com/wodby/php/blob/c5b31a0ceeac7298a5cbefa54800d759ebc986cb/8/templates/docker-php-ext-xdebug.ini.tmpl#L1
I am not familiar with go template syntax. Can it check more explicitly for emptiness of
PHP_XDEBUG
variable?