phpMyAdmin broken by PHP 8.3 transition

Bug #2059336 reported by Zixing Liu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Fix Released
Undecided
William Desportes

Bug Description

PHPMyAdmin broken by PHP 8.3 / Symfony transition.

An API behavior change was detected in the autopkgtest:

385s 1) PhpMyAdmin\Tests\MimeTest::testDetect with data set #2 ('�PNG', 'image/png')
385s Failed asserting that two strings are equal.
385s --- Expected
385s +++ Actual
385s @@ @@
385s -'application/octet-stream'
385s +'image/png'
385s
385s /tmp/autopkgtest.iwDtyr/build.Mfe/src/test/classes/MimeTest.php:26
385s /usr/bin/phpunit:107
385s
385s --

Revision history for this message
William Desportes (williamdes) wrote :

Thank you for reporting this. Reading the code in https://git.launchpad.net/ubuntu/+source/phpmyadmin/tree/libraries/classes/Mime.php?h=ubuntu/noble

It has no relation to Symfony. That's great !
But probably has something to do with PHP 8.3

summary: - phpmyadmin broken by php 8.3 transition
+ phpmyadmin broken by php 8.3
summary: - phpmyadmin broken by php 8.3
+ phpMyAdmin broken by PHP 8.3 transition
Revision history for this message
William Desportes (williamdes) wrote :
Changed in phpmyadmin (Ubuntu):
assignee: nobody → William Desportes (williamdes)
status: New → In Progress
Changed in phpmyadmin (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Nice! Thanks, William! I will prepare an upload shortly.

Revision history for this message
William Desportes (williamdes) wrote :

Thank you, I uploaded the patch to salsa: https://salsa.debian.org/phpmyadmin-team/phpmyadmin/-/blob/debian/latest/debian/patches/PHP-8.3-mb-string-detection-fix.patch?ref_type=heads

More patches are to be done but this will be in the next sync of Ubuntu&Debian

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Nice! Thanks, William.

FWIW, I already uploaded this one (it is currently in proposed). It should take a few days to migrate due to the mass rebuild going on in the archive, but this should be released in 24.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phpmyadmin - 4:5.2.1+dfsg-2ubuntu2

---------------
phpmyadmin (4:5.2.1+dfsg-2ubuntu2) noble; urgency=medium

  * d/p/Fix-php83-mtype.patch: specify text enconding when detecting
    PNG media types. (LP: #2059336)

 -- Athos Ribeiro <email address hidden> Tue, 02 Apr 2024 11:28:55 -0300

Changed in phpmyadmin (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.