Public bug reported:

The /var/lib/dpkg/info/php8.3-cli.postinst has following segment:

    phpini="/etc/php/8.3/cli/php.ini"

    if [ "cli" = "cli" ]; then
        ucf /usr/lib/php/8.3/php.ini-production.cli $phpini
    else
        ucf /usr/lib/php/8.3/php.ini-production $phpini
    fi

which obviously effectively runs


    ucf /usr/lib/php/8.3/php.ini-production.cli /etc/php/8.3/cli/php.ini

However, since this is done without using the ucf flag --three-way, the
system cannot help merge files in future update that might need to
upgrade this file.

On the other hand, all the much smaller files in /usr/lib/php/8.3/conf.d
appear to have the --three-way enabled so end users get much better
support for small 3–5 lines long files but not for the main file!

The same thing appears to affect package libapache2-mod-php8.3, too, but
I would assume it's actually generated from the same source files given
the weird looking if statement.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: php8.3-cli 8.3.6-0ubuntu0.24.04.11
ProcVersionSignature: Ubuntu 7.0.0-30.30~24.04.1-generic 7.0.12
Uname: Linux 7.0.0-30-generic x86_64
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Wed Sep 16 18:37:39 2026
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-01-05 (2811 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: php8.3
UpgradeStatus: Upgraded to noble on 2026-04-25 (144 days ago)

** Affects: php8.3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

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

Title:
  The php.ini file is generated/installed without three-way merge
  support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php8.3/+bug/2167507/+subscriptions


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

Reply via email to