mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix error checking in mysqlnd
This commit is contained in:
commit
7a4b213c1f
2 changed files with 3 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -47,6 +47,8 @@ PHP NEWS
|
||||||
. Fixed bug GH-11550 (MySQL Statement has a empty query result when
|
. Fixed bug GH-11550 (MySQL Statement has a empty query result when
|
||||||
the response field has changed, also Segmentation fault).
|
the response field has changed, also Segmentation fault).
|
||||||
(Yurunsoft)
|
(Yurunsoft)
|
||||||
|
. Fixed invalid error message "Malformed packet" when connection is dropped.
|
||||||
|
(Kamil Tekiela)
|
||||||
|
|
||||||
- Opcache:
|
- Opcache:
|
||||||
. Fixed bug GH-11715 (opcache.interned_strings_buffer either has no effect or
|
. Fixed bug GH-11715 (opcache.interned_strings_buffer either has no effect or
|
||||||
|
|
|
@ -202,6 +202,7 @@ MYSQLND_METHOD(mysqlnd_pfc, send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const v
|
||||||
if (bytes_sent <= 0) {
|
if (bytes_sent <= 0) {
|
||||||
DBG_ERR_FMT("Can't %zu send bytes", count);
|
DBG_ERR_FMT("Can't %zu send bytes", count);
|
||||||
SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
|
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);
|
DBG_RETURN(bytes_sent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue