Why did 20-xmlreader.ini and 20-xmlwriter.ini get removed?

Asked by Pettis

Hi folks

Firstly, thanks for all your work on this package.

I am trying to understand why a recent unattended upgrade removed /etc/php/7.0/fpm/conf.d/20-xmlreader.ini and /etc/php/7.0/fpm/conf.d/20-xmlwriter.ini and whether it something I should be anticipating going forward.

I have only been configuring my own servers for a year or two so I am not sure if this a misconfiguration on my part. E.g. if I want to make sure unattended upgrades don't lead to unloaded extensions should I have put the includes in a site-level php.ini file?

Here is the related part of the dpkg log:

$ cat /var/log/dpkg.log | grep php
[...]
2017-03-15 14:05:44 remove php7.0-xml:amd64 7.0.15-0ubuntu0.16.04.4 <none>
2017-03-15 14:05:44 status triggers-pending php7.0-fpm:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:44 status half-configured php7.0-xml:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:44 status half-installed php7.0-xml:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:45 status config-files php7.0-xml:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:45 status config-files php7.0-xml:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:45 trigproc php7.0-fpm:amd64 7.0.15-0ubuntu0.16.04.4 <none>
2017-03-15 14:05:45 status half-configured php7.0-fpm:amd64 7.0.15-0ubuntu0.16.04.4
2017-03-15 14:05:46 status installed php7.0-fpm:amd64 7.0.15-0ubuntu0.16.04.4

Curiously, I fixed by running:
sudo apt-get update php7.0-xml

Any advice or links to further reading would be much appreciated.

Pettis

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu php7.0 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nish Aravamudan (nacc) said :
#1

It seems like you truncated your log too early. Why is php7.0-xml being removed? That is why the xmlreader.ini files were removed. If you depend on xmlreader.ini in some deployed (non-Ubuntu package) code, you should run `apt install php7.0-xml` so that it is not installed due only to dependencies, but because you explicitly asked for it to be.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.