remove --purge php5-mysql/php5-mysqlnd delete the same configurations

Bug #1439925 reported by jasonz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 14.04 LTS

Reproduce:

```
$ sudo apt-get install php5-fpm php5-mysql
$ ls /etc/php5/mods-available
json.ini mysql.ini mysqli.ini mysqlnd.ini opcache.ini pdo.ini pdo_mysql.ini
$ ls /etc/php5/fpm/conf.d
05-opcache.ini 10-mysqlnd.ini 10-pdo.ini 20-json.ini 20-mysql.ini 20-mysqli.ini 20-pdo_mysql.ini
$ sudo apt-get install php5-mysqlnd
$ dpkg -l | grep php5-mysql
rc php5-mysql
ii php5-mysqlnd
$ sudo apt-get remove --purge php5-mysql
$ ls /etc/php5/mods-available
json.ini mysql.ini mysqli.ini mysqlnd.ini opcache.ini pdo.ini pdo_mysql.ini
$ ls /etc/php5/fpm/conf.d
05-opcache.ini 10-mysqlnd.ini 10-pdo.ini 20-json.ini 20-pdo_mysql.ini
```

Replace php5-mysql with php5-mysqlnd, then `apt-get remove --purge php5-mysql` will delete /etc/php5/fpm/conf.d/20-mysql.ini and /etc/php5/fpm/conf.d/20-mysqlnd.ini.

But those two soft linked configurations now belongs to php5-mysqlnd which I still need.
This behavior will lead to php child process crash in some certain cases.
The user needs to `ln -s` to recreate the soft link.

I'm not sure if it is the intended behavior.

Maybe rename those two ini files will solve the problem?
Or the user need to `apt-get remove --purge php5-mysql` first, then `apt-get install php5-mysqlnd`.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php5 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.