Skip to content

Commit 60ab7a3

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Report gone away error in one more place
2 parents 4273ec8 + ce7c2cc commit 60ab7a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mysqlnd/mysqlnd_wireprotocol.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
13961396
*data_size = 0;
13971397
if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) {
13981398
ret = FAIL;
1399+
SET_CONNECTION_STATE(connection_state, CONN_QUIT_SENT);
1400+
set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
13991401
} else {
14001402
*data_size += header.size;
14011403
buffer->ptr = pool->get_chunk(pool, *data_size + prealloc_more_bytes);

0 commit comments

Comments
 (0)