docker-library / docker-library/php
Add `docker-php-ext-disable`
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4k
- Forks
- 2k
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the docker-php-ext-enable script and inspect how it finds and writes extension ini files. Implement either a docker-php-ext-disable command or a --disable mode, ensuring disabling renames the ini file with a -disabled suffix and re-enabling restores it when present or creates it otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php
- Domain
- devops, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100