docker-library / docker-library/php

Add `docker-php-ext-disable`

Open
#1,277 2 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.