Commit b6cf47f3666 for php

commit b6cf47f3666a3e394e51612d35f60972f9b7b2fd
Author: Lazizbek Ergashev <lazerg2@gmail.com>
Date:   Thu Oct 29 17:08:45 2026 +0500

    Fix GH-24609: mysqlnd OK packets without info rejected on x32 builds (#24614)

diff --git a/NEWS b/NEWS
index 34e192a5e56..9e93da5c8d8 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 495539d970d..740d13031e8 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");