php icon indicating copy to clipboard operation
php copied to clipboard

Add `docker-php-ext-disable`

Open mvorisek opened this issue 3 years ago • 2 comments

This is a feature request to add easy way to disable php ext.

I propose to add docker-php-ext-disable, but adding a switch --disable to current docker-php-ext-enable script will solve this issue as well.

The expected behaviour of disabling an ext is to rename the ini file to something like .ini-disabled and when enabling back, check if such ini file exists, if yes, strip the -disabled suffix, if no, create a new ini file.

mvorisek avatar Mar 24 '22 11:03 mvorisek

See https://github.com/docker-library/php/issues/220 :sweat_smile:

tianon avatar Mar 24 '22 16:03 tianon

@tianon quite a lot of people demand this feature 😄

I belive the proposed solution here is better than simply rm the ini file, as the ini file might contain more configuration, and if so, this must be natively supported in docker-php-ext-enable to restore the disabled ini file

mvorisek avatar Mar 24 '22 17:03 mvorisek