Bug #64032 [Ver->Csd]: mysqli reports different client_version with procedural and object style

From: Date: Thu, 27 Feb 2020 08:41:10 +0000
Subject: Bug #64032 [Ver->Csd]: mysqli reports different client_version with procedural and object style
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225743@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64032&edit=1 ID: 64032 Updated by: cmb@php.net Reported by: shakaran at gmail dot com Summary: mysqli reports different client_version with procedural and object style -Status: Verified +Status: Closed Type: Bug Package: MySQLi related Operating System: Centos 5.9 PHP Version: 5.3.21 Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=8654c32b584d448cbf9f341693b227db193fe155 Log: Fix #64032: mysqli reports different client_version Previous Comments: ------------------------------------------------------------------------ [2020-02-26 17:44:24] cmb@php.net The following pull request has been associated: Patch Name: Fix #64032: mysqli reports different client_version On GitHub: https://github.com/php/php-src/pull/5213 Patch: https://github.com/php/php-src/pull/5213.patch ------------------------------------------------------------------------ [2020-02-26 17:43:12] cmb@php.net To clarify, this has nothing to do with the server (version); it's rather about the difference of the version PHP (or the respective extension) has been built against vs. which version is availble during runtime. ------------------------------------------------------------------------ [2013-03-13 16:24:36] shakaran at gmail dot com ext/mysqli/php_mysqli_structs.h:91:#define MYSQLI_VERSION_ID 101009 ext/mysqlnd/mysqlnd.h:26:#define MYSQLND_VERSION_ID 50011 ext/mysqlnd/mysqlnd_libmysql_compat.h:36:#define MYSQL_VERSION_ID MYSQLND_VERSION_ID ------------------------------------------------------------------------ [2013-03-13 13:07:05] uw@php.net s/MYSQLI_VERSION/MYSQL_VERSION_ID ------------------------------------------------------------------------ [2013-03-13 13:06:25] uw@php.net Good find, must be a bug dating back years: OO interfaces uses compile time MYSQLI_VERSION Procedural interfaces uses run time C API function call However, its slightly in the grey area. Client library version and server version are expected to match in general. AFAIK, in the past, only very conservative statements have been made about using library versions that differ from server version, particularily if using old library to connect to new server - which seems to be your case. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64032 -- Edit this bug report at https://bugs.php.net/bug.php?id=64032&edit=1

« previous php.bugs (#225743) next »