Package: php8.1-xdebug
Version: 3.1.2+2.9.8+2.8.1+2.5.5-4
Severity: important

Dear Maintainer,

the use case is a dev machine that needs to have both php7.4 and php8.1
running and both should have xdebug working. It's a long know issue
that was already solved time ago when php dirs where properly
re-organized. IMHO this is a rollback in pagkage organisazion. The
matter is hence probably already know to you. Anyhow the long
explanation.

If you have php-xdebug installed and you update you may get updated
from php7.4-xdebug to php8.1-xdebug. The latter removes php7.4-xdebug
(that is now a vitual package) and leaves you without debugging
functionality for php7.4. As said, you cannot install php7.4-xdebug
because it's virtual and manually downloading a .deb gives conflict.

To an initial inspection, there is no reason for the two pacakge to not
be able to live together on the system. php8.1 is using new API dir
20210902 meanwhile php7.4 is using API dir 20190902, hence the two
packages have no conflicting files (maybe the docs files in
php7.4-xdebug that are in a generic php-xdebug directory instead of a
versioned one, but that should be fixed in the package then, even if
php8.1-xdebug properly named its directory, so no problem).

Notice also that php8.1-xdebug migrated the conf files for xdebug by
*moving* user edited files from php7.4 directory. That should have
really been a *copy* of those files. If a conf file is edited for some
php version removing it might break a working module e.g. user has some
the mod compiled or other corner cases.

I expect to have two packages:
php7.4-xdebug
php8.1-xdebug
be able to have both of them installed on the system so to be able to
debug with both versions of php switching between them with
update-alternatives or just running both of them simulataneously with
php-fpm (quite common setup we have on our server).


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-1-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
(charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages php8.1-xdebug depends on:
ii  libc6                            2.33-4
ii  php-common                       2:76
ii  php8.1-cli [phpapi-20210902]     8.1.7-1
ii  php8.1-common                    8.1.7-1
ii  php8.1-phpdbg [phpapi-20210902]  8.1.7-1
ii  ucf                              3.0043

php8.1-xdebug recommends no packages.

php8.1-xdebug suggests no packages.

-- no debconf information

Reply via email to