mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix error checking in mysqlnd
This commit is contained in:
@@ -202,6 +202,7 @@ MYSQLND_METHOD(mysqlnd_pfc, send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const v
|
||||
if (bytes_sent <= 0) {
|
||||
DBG_ERR_FMT("Can't %zu send bytes", count);
|
||||
SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
|
||||
bytes_sent = 0; // the return type is unsigned and 0 represents an error condition
|
||||
}
|
||||
DBG_RETURN(bytes_sent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user