[php-src] PHP-8.4: Fix GH-24609: mysqlnd OK packets without info rejected on x32 builds (#24614)

From: Date: Thu, 29 Oct 2026 12:08:49 +0000
Subject: [php-src] PHP-8.4: Fix GH-24609: mysqlnd OK packets without info rejected on x32 builds (#24614)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142936@lists.php.net to get a copy of this message
Author: Lazizbek Ergashev (lazerg) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-10-29T12:08:45Z Commit: https://github.com/php/php-src/commit/b6cf47f3666a3e394e51612d35f60972f9b7b2fd Raw diff: https://github.com/php/php-src/commit/b6cf47f3666a3e394e51612d35f60972f9b7b2fd.diff Fix GH-24609: mysqlnd OK packets without info rejected on x32 builds (#24614) Changed paths: M NEWS M ext/mysqlnd/mysqlnd_wireprotocol.c Diff: diff --git a/NEWS b/NEWS index 34e192a5e561..9e93da5c8d88 100644 --- a/NEWS +++ b/NEWS @@ -115,6 +115,8 @@ PHP NEWS - MySQLnd: . Fixed bug GH-24293 (Segfault on connect with an empty password to a MariaDB PAM account). (lazerg) + . Fixed bug GH-24609 (OK packets without an info message rejected on x32 + builds). (lazerg) - ODBC: . Fixed bug GH-24736 (php_odbc_connstr_is_quoted() treats a value with no diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 495539d970df..740d13031e88 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -1129,7 +1129,7 @@ php_mysqlnd_rset_header_read(MYSQLND_CONN_DATA * conn, void * _packet) zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; const zend_uchar * p = buf; const zend_uchar * const begin = buf; - size_t len; + zend_ulong len; MYSQLND_OPTIONAL_UINT64_T len_ll; DBG_ENTER("php_mysqlnd_rset_header_read");

« previous php.cvs (#142936) next »