Public bug reported:
After the latest php upgrade from 18.04.17+esm8 to 18.04.17+esm9, it became
impossible to connect to a pgsql database from php.
The message in the Apache errorlog is :
PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql.so'
(tried: /usr/lib/php/20170718/pgsql.so (/usr/lib/php/20170718/pgsql.so:
undefined symbol: zend_string_efree), /usr/lib/php/20170718/pgsql.so.so
(/usr/lib/php/20170718/pgsql.so.so: cannot open shared object file: No
such file or directory)) in Unknown on line 0
The latest upgrade was :
jerome@pc:~$ fgrep Unpacking /var/log/apt/term.log | fgrep php
Unpacking php7.2-mysql (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-opcache (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-json (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-bcmath (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-readline (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-mbstring (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-pgsql (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-xml (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking libapache2-mod-php7.2 (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-cli (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2-common (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
Unpacking php7.2 (7.2.24-0ubuntu0.18.04.17+esm9) over
(7.2.24-0ubuntu0.18.04.17+esm8) ...
jerome@pc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
jerome@pc:~$ apt-cache policy php-pgsql
php-pgsql:
Installé : 1:7.2+60ubuntu1
Candidat : 1:7.2+60ubuntu1
Table de version :
*** 1:7.2+60ubuntu1 500
500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: php-pgsql 1:7.2+60ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-240.252-generic 4.15.18
Uname: Linux 4.15.0-240-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.29+esm4
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Aug 30 10:23:10 2025
InstallationDate: Installed on 2015-10-11 (3610 days ago)
InstallationMedia: Xubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
PackageArchitecture: all
SourcePackage: php-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: php-defaults (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic third-party-packages
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121731
Title:
php-pgsql broken after upgrading to ubuntu 18.04.17+esm9
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php-defaults/+bug/2121731/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs