Bug #66056 [NEW]: mysql_connect(): Headers and client library minor version mismatch.
| From: | ihanick at gmail dot com | Date: | Fri, 08 Nov 2013 07:17:46 +0000 |
| Subject: | Bug #66056 [NEW]: mysql_connect(): Headers and client library minor version mismatch. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182648@lists.php.net to get a copy of this message | ||
From: ihanick at gmail dot com
Operating system:
PHP version: Irrelevant
Package: MySQL related
Bug Type: Bug
Bug description:mysql_connect(): Headers and client library minor version mismatch.
Description:
------------
CentOS 6 with remi repository & ubuntu 13.04 having php-mysql extension
compiled with libmysqlclient.so.18 library from mysql 5.5.
During 5.6 release mysql development team wasn't confirmed any major
changes in library, thus just a minor library version bumped (5.5:
libmysqlclient.so.18.0, 5.6: libmysqlclient.so.18.1).
Why we need major mysql version check in
./ext/mysql/php_mysql.c
./ext/mysqli/mysqli_nonapi.c
?
Currently it's not possible to deploy both libmysqlclient.so.18
libraries from 5.5 and & 5.6 in shared-compat package, because both
versions are providing library file with the same major version.
Test script:
---------------
<?php
$link = mysql_connect('localhost', 'root', '');
Expected result:
----------------
Shouldn't produce any output
Actual result:
--------------
PHP Warning: mysql_connect(): Headers and client library minor version
mismatch. Headers:50534 Library:50614 in test-mysql.php on line 2
--
Edit bug report at https://bugs.php.net/bug.php?id=66056&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66056&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66056&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66056&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66056&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66056&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66056&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66056&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66056&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66056&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66056&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66056&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66056&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66056&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66056&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66056&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66056&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66056&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66056&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66056&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66056&r=mysqlcfg