mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #78179: MariaDB server version incorrectly detected
This commit is contained in:
commit
e60c507362
1
NEWS
1
NEWS
@ -22,6 +22,7 @@ PHP NEWS
|
||||
Jung)
|
||||
|
||||
- MySQLnd:
|
||||
. Fixed bug #78179 (MariaDB server version incorrectly detected). (cmb)
|
||||
. Fixed bug #78213 (Empty row pocket). (cmb)
|
||||
|
||||
- Opcache:
|
||||
|
@ -1436,6 +1436,14 @@ MYSQLND_METHOD(mysqlnd_conn_data, get_server_version)(const MYSQLND_CONN_DATA *
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define MARIA_DB_VERSION_HACK_PREFIX "5.5.5-"
|
||||
|
||||
if (conn->server_capabilities & CLIENT_PLUGIN_AUTH
|
||||
&& !strncmp(p, MARIA_DB_VERSION_HACK_PREFIX, sizeof(MARIA_DB_VERSION_HACK_PREFIX)-1))
|
||||
{
|
||||
p += sizeof(MARIA_DB_VERSION_HACK_PREFIX)-1;
|
||||
}
|
||||
|
||||
major = ZEND_STRTOL(p, &p, 10);
|
||||
p += 1; /* consume the dot */
|
||||
minor = ZEND_STRTOL(p, &p, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user