I saw that there is no disable script here - ideally, it'd be great to replicate both php5enmod and php5dismod functionality.
I created a disable script based on docker-php-ext-enable and am copying it in my build. The script just looks for the existence of the extension ini file and removes it - but not sure if there is a more ideal way to handle this? Willing to PR it, if there's any interest.
The use case for me was to be able to enable or disable xdebug on the fly when running PHPUnit:
docker exec -ti php sh -c "docker-php-ext-disable xdebug && vendor/bin/phpunit
I saw that there is no disable script here - ideally, it'd be great to replicate both
php5enmodandphp5dismodfunctionality.I created a disable script based on
docker-php-ext-enableand am copying it in my build. The script just looks for the existence of the extension ini file and removes it - but not sure if there is a more ideal way to handle this? Willing to PR it, if there's any interest.The use case for me was to be able to enable or disable xdebug on the fly when running PHPUnit:
docker exec -ti php sh -c "docker-php-ext-disable xdebug && vendor/bin/phpunit