mirror of
https://github.com/php/php-src.git
synced 2026-04-03 06:02:23 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix coding style from previous commit
This commit is contained in:
@@ -373,8 +373,9 @@ php_mysqlnd_greet_read(MYSQLND_CONN_DATA * conn, void * _packet)
|
||||
|
||||
/* MariaDB always sends 5.5.5 before version string: 5.5.5 was never released,
|
||||
so just ignore it */
|
||||
if (!strncmp((char *) p, MARIADB_RPL_VERSION_HACK, sizeof(MARIADB_RPL_VERSION_HACK) - 1))
|
||||
p+= sizeof(MARIADB_RPL_VERSION_HACK) - 1;
|
||||
if (!strncmp((char *) p, MARIADB_RPL_VERSION_HACK, sizeof(MARIADB_RPL_VERSION_HACK) - 1)) {
|
||||
p += sizeof(MARIADB_RPL_VERSION_HACK) - 1;
|
||||
}
|
||||
|
||||
packet->server_version = estrdup((char *)p);
|
||||
p+= strlen(packet->server_version) + 1; /* eat the '\0' */
|
||||
|
||||
Reference in New Issue
Block a user