🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5663

Bug#1151659: php8.2-curl: Version 8.2.35-1~deb12u1 fails to load dynamic library

#5663
From: Kevin Koster
Date: Mon, 23 Nov 2026 02:50
100 lines
7371 bytes
On Mon, 26 Oct 2026 11:40:42 +1100
Kevin Koster <contact@ombertech.com> wrote:

> I encountered this same issue with many PHP modules failing to load
> after updating PHP packages including php8.2-curl and
> libapache2-mod-php8.2 from 8.2.34-1~deb12u1 to 8.2.35-1~deb12u1 on
> Devuan Daedalus (based on Debian 12 (Bookworm)). Also on a Debian 13
> (Trixie) system after upgrading libapache2-mod-php8.4 (etc.) from
> 8.4.26-1~deb13u1 to 8.4.27-1~deb13u1.

Although not causing any errors from enabled modules this time, the same
root issue happened again on both these systems when upgrading PHP
packages from 8.2.35-1~deb12u1 to 8.2.36-1~deb12u1, and
8.4.27-1~deb13u1 to 8.4.28-1~deb13u1. Apache continued running the old
PHP module version.

> The libapache2-mod-php package's post-install script
> (libapache2-mod-php.postinst.extra) triggers an Apache "restart"
> action via the apache2_reload function in
> /usr/share/apache2/apache2-maintscript-helper after the updated
> package is installed. This appears to be equivalent to running
> "apache2ctl restart".

I was wrong, it's supposed to run "invoke-rc.d apache2 restart"
after installation, which the Apache logs show causes it to do a
"graceful stop" after receiving SIGWINCH when run manually, and will
reload the PHP module. But for some reason this doesn't happen - the
Apache logs show no stop event happened when the package was updated.

> However Apache still continues to run the old PHP module already
> loaded in memory, as seen in the output of the "phpinfo()" function
> run from a PHP script accessed via HTTP, which still reports the
> previous version number and build date. But Apache does attempt to
> reload PHP's own modules, which are for the new Apache PHP module and
> therefore fail to load due to missing symbols in the old Apache PHP
> module that's still running.

Until "apache2ctl stop" then "apache2ctl start" were run manually,
"phpinfo()" continued to show PHP versions 8.2.35 and 8.4.27 were
running on the web servers after the newer packages were installed.

Here is the log of unattended-upgrades installing the PHP 8.4.28
packages on Debian 13 (Trixie):
------------------------------------------------------------------------
Log started: 2026-11-21  06:45:42
apt-listchanges: Reading changelogs...
apt-listchanges: Reading changelogs...
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Readi>
Preparing to unpack .../0-php8.4-xml_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-xml (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../1-php8.4-readline_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-readline (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../2-php8.4-opcache_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-opcache (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../3-php8.4-mbstring_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-mbstring (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../4-php8.4-curl_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-curl (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../5-libapache2-mod-php8.4_8.4.28-1~deb13u1_amd64.deb ...
Unpacking libapache2-mod-php8.4 (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../6-php8.4-cli_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-cli (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../7-php8.4-common_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-common (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Setting up php8.4-common (8.4.28-1~deb13u1) ...
Setting up php8.4-curl (8.4.28-1~deb13u1) ...
Setting up php8.4-xml (8.4.28-1~deb13u1) ...
Setting up php8.4-opcache (8.4.28-1~deb13u1) ...
Setting up php8.4-readline (8.4.28-1~deb13u1) ...
Setting up php8.4-mbstring (8.4.28-1~deb13u1) ...
Setting up php8.4-cli (8.4.28-1~deb13u1) ...
Setting up libapache2-mod-php8.4 (8.4.28-1~deb13u1) ...
libapache2-mod-php8.4: not switching MPM - already enabled
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for php8.4-cli (8.4.28-1~deb13u1) ...
Processing triggers for libapache2-mod-php8.4 (8.4.28-1~deb13u1) ...
Log ended: 2026-11-21  06:46:31
------------------------------------------------------------------------

"phpinfo()" still showed "PHP Version 8.4.27" two days later, before the
manual stop/start of Apache was done, which should have been done
automatically at the "Setting up libapache2-mod-php8.4" step. The Apache
logs show no restart happened on 2026-11-21 around 06:45. I installed
the previous PHP package update (with the PHP2Shell bugfixes) manually
using Aptitude, so it's not just an issue with unattended-upgrades.

Note that the "libapache2-mod-php8.4: not switching MPM - already
enabled" message suggests that the libapache2-mod-php.postinst.extra
script has been run, but the Apache restart part at the end seems to
have failed. Or Apt doesn't run it with the "triggered" command?

It would nice not to have PHP modules on Apache all potentially break
any time PHP is automatically updated. Not to mention that it leaves the
server still vulnerable to the security issues that have been fixed in
the update, so potentially still vulnerable to PHP2Shell if no manual
Apache stop/start had been run since then.
-- 
Kevin Koster <contact@ombertech.com>

Kevin Koster.
Technical Details
Message-ID: <O2shX-dAer-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NShe9-7T2F-1@gated-at.bofh.it> <NR4M2-7e4k-7@gated-at.bofh.it> <NShe9-7T2F-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Kevin Koster <contact@ombertech.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151659: php8.2-curl: Version 8.2.35-1~deb12u1 fails to load dynamic library
Date: Mon, 23 Nov 2026 03:50:01 +0100
Message-ID: <O2shX-dAer-1@gated-at.bofh.it>
References: <NShe9-7T2F-1@gated-at.bofh.it> <NR4M2-7e4k-7@gated-at.bofh.it> <NShe9-7T2F-1@gated-at.bofh.it>
X-Original-To: 1151659@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 02:47:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.614
Reply-To: Kevin Koster <contact@ombertech.com>, 1151659@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-php@tracker.debian.org
X-Debian-Pr-Message: followup 1151659
X-Debian-Pr-Package: php8.2-curl
X-Debian-Pr-Keywords: moreinfo unreproducible
X-Debian-Pr-Source: php8.2
Organization: OmberTech
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004308
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 100
Sender: robomod@news.nic.it
X-Original-Date: Mon, 23 Nov 2026 13:44:42 +1100
X-Original-Message-ID: <20261123134442.84925d6e193b33de672e5975@ombertech.com>
X-Original-References: <20261026114042.6bb68680.contact@ombertech.com> <179268976057.1990078.17687928748032097408.reportbug@webs.bst.at> <20261026114042.6bb68680.contact@ombertech.com>