I don't know when/where this was changed.
But triggers now behave correctly (in general) in regard to the order of 
unpack/setup/trigger.
Here 18.04 on the reported package:


Preparing to unpack .../php7.2-curl_7.2.1-1ubuntu2_amd64.deb ...
Unpacking php7.2-curl (7.2.1-1ubuntu2) ...
Setting up php7.2-curl (7.2.1-1ubuntu2) ...

Creating config file /etc/php/7.2/mods-available/curl.ini with new version
Processing triggers for libapache2-mod-php7.2 (7.2.1-1ubuntu2) ...

This will call "apache2_reload restart" as it can be seen in
/var/lib/dpkg/info/libapache2-mod-php7.2.postinst


Random other example:
Selecting previously unselected package php7.2-soap.
(Reading database ... 67852 files and directories currently installed.)
Preparing to unpack .../php7.2-soap_7.2.1-1ubuntu2_amd64.deb ...
Unpacking php7.2-soap (7.2.1-1ubuntu2) ...
Setting up php7.2-soap (7.2.1-1ubuntu2) ...

Creating config file /etc/php/7.2/mods-available/soap.ini with new version
Processing triggers for libapache2-mod-php7.2 (7.2.1-1ubuntu2) ...


So at least for the most recent (and maybe even quite some time back) - Fix 
Released

** Changed in: php5 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1355253

Title:
  Apache reloading before package setup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1355253/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to