voxpupuli / voxpupuli/puppet-php

Disable extension if "absent"

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Puppet
Stars
86
Forks
264
Avg merge
29m
Merged PRs (30d)
1

Description

Currently one can set a php::extension to be absent, however this does not run the PHP CLI tool to actually disable the extension (e.g. phpdismod). This results in messages like this on every PHP invocation:

Failed loading /usr/lib/php/20131226/xdebug.so: /usr/lib/php/20131226/xdebug.so: cannot open shared object file: No such file or directory

(This is due to xdebug.ini still being active and thus pointing to this file.)

Thus I'd suggest to run phpdismod if an extension should be absent similarly to the current invocation of phpenmod.

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

Locate the php::extension implementation and its existing phpenmod invocation. Read how the absent state is handled, then verify that the absent path invokes the corresponding disable command and no longer leaves the extension active.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.