Bug 1421913 - phpMyAdmin should require mysqli instead of mysql
Summary: phpMyAdmin should require mysqli instead of mysql
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: phpMyAdmin
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-14 02:15 UTC by Devin Henderson
Modified: 2017-03-10 11:19 UTC (History)
5 users (show)

Fixed In Version: phpMyAdmin-4.0.10.19-1.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-10 11:19:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Devin Henderson 2017-02-14 02:15:28 UTC
Since phpMyAdmin 4.0 supports the mysqli interface, the phpMyAdmin package on epel6 should require mysqli rather than the deprecated mysql. The php-mysql package in base EL6 provides both interfaces so this should still work for stock installs of phpMyAdmin while also having the added benefit of supporting 3rd party repos like IUS that provide newer versions of php but do not provide the old php-mysql interface.

Comment 1 Carl George 2017-02-14 03:57:33 UTC
On closer inspection, it appears that EPEL6's phpMyAdmin requires _both_ php-mysql and php-mysqli.

# repoquery --requires phpMyAdmin | grep mysql
php-mysql >= 5.2.0
php-mysqli

Since the stock php-mysql package provides both, it should be fine to simply remove the redundant php-mysql requirement.  This would allow greater compatibility with newer PHP packages from third party repositories.

# repoquery --queryformat %{name} --whatprovides php-mysql | sort -u
php56u-mysqlnd
php-mysql

# repoquery --queryformat %{name} --whatprovides php-mysqli | sort -u
php56u-mysqlnd
php70u-mysqlnd
php71u-mysqlnd
php-mysql

Comment 2 Remi Collet 2017-02-14 08:51:33 UTC
phpMyAdmin 4.0 is not supported with PHP 7+ so I don't see any value to change this.

PHP 7 users should use phpMyAdmin 4.6+

Comment 3 Remi Collet 2017-02-14 09:01:13 UTC
Correct fix is:

Requires:	php(language) < 7
Requires:       php-mysqli

BTW, as this version is now unmaintained upstream...

Comment 4 Fedora Update System 2017-02-23 00:41:50 UTC
phpMyAdmin-4.0.10.19-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4e715bd3df

Comment 5 Fedora Update System 2017-02-23 19:47:48 UTC
phpMyAdmin-4.0.10.19-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-4e715bd3df

Comment 6 Fedora Update System 2017-03-10 11:19:34 UTC
phpMyAdmin-4.0.10.19-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.