Topic: php-mysql vs php-mysqlnd

Hi Remi

I'm seeing this all the time on my EL6 system:  mysqli: Headers and client library minor version mismatch

According to https://www.dotdeb.org/2014/04/04/about … warning-2/ , the recommended fix for messages such as "PHP Warning:  mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50542 Library:100103 in /usr/share/glpi/inc/dbmysql.class.php on line 109" is to update php-mysql to the php-mysqlnd (native driver version) package

Unfortunately, you've hardcoded glpi's dependencies against php-mysql

Is there any chance of tweaking package dependencies to allow this to work?

(Background: Right now every time glpi runs a cron job the message above gets emailed to root. It's also being logged all over the place as people use the web interface. I believe it is better to quell the messages than to just pipe output to /dev/null )


(cacti has the same problem. Can php-mysqlnd be flagged as an upgrade to php-mysql?)

Thanks
Alan

Re: php-mysql vs php-mysqlnd

php-mysqlnd is better, definitively

You can switch from php-mysql to php-mysqlnd without any dependency issue using "yum shell"

See http://blog.famillecollet.com/post/2011 … ive-Driver

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-mysql vs php-mysqlnd

> Can php-mysqlnd be flagged as an upgrade to php-mysql

Not needed:

$ rpm -q --provides php-mysqlnd
config(php-mysqlnd) = 5.6.7-1.fc21.remi
php-mysql = 5.6.7-1.fc21.remi
php-mysql(x86-64) = 5.6.7-1.fc21.remi
php-mysqli = 5.6.7-1.fc21.remi
php-mysqli(x86-64) = 5.6.7-1.fc21.remi
php-mysqlnd = 5.6.7-1.fc21.remi
php-mysqlnd(x86-64) = 5.6.7-1.fc21.remi
php-pdo_mysql
php-pdo_mysql(x86-64)
php_database

And php-mysql (the package) doesn't exists in PHP 5.5+

And GLPI requires php-mysqli, not php-mysql

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi