[php-maint] Removing of php modules (.ini file problem)

Guillaume Delacour gui at iroqwa.org
Thu Jul 16 22:13:41 UTC 2009

Hello all,

I work on php5-imagick package (to update the version and close all
bugs on it) and saw a few months ago by checking the bugs reported [1]
that the removal of an extension (php-memcache, php-mcrypt and maybe
many others) keep the /etc/php5/conf.d/<extension>.ini file with the
load of it within.
When restart/graceful the webserver, error are reported (typically
in /var/log/apache/error.log) against the failing of the module loading:

PHP Warning:  PHP Startup: Unable to load dynamic library
- /usr/lib/php5/20060613+lfs/mcrypt.so: cannot open shared object file:
No such file or directory in Unknown on line 0

When uploading my package on mentors, another contributor decided to
fix it and upload the corresponding fixes (it's maybe more simple to
upload ivan's php-imagick package to the archive after reviewing):

if test -e /etc/phpX/conf.d/imagick.ini; then
    sed s/\;extension/extension/g -i /etc/phpX/conf.d/imagick.ini

if test "$1" = "remove"; then
    sed s/extension/\;extension/g -i /etc/phpX/conf.d/imagick.ini

Do we have to modify all other extension on this example ?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498150


Guillaume Delacour
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20090717/78517d15/attachment.pgp>

More information about the pkg-php-maint mailing list