Commit ba2264028cc for php

commit ba2264028cc564a3ccd3933ed632d7f0af07c274
Author: Kamil Tekiela <tekiela246@gmail.com>
Date:   Tue Nov 10 01:01:53 2026 +0000

    Change the type of position in stream_cookie_seeker (#25354)

diff --git a/NEWS b/NEWS
index 04f6aec330c..f13aa1a9817 100644
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,8 @@ PHP                                                                        NEWS
     brigade. (ndossche, Matthias Goergens, Jakub Zelenka)
   . Fixed bug GH-24175 (Use-after-free when pclose() closes a stream from its
     user filter). (Edmond)
+  . Fixed bug GH-15701 (Build failure: incompatible funopen() seeker pointer
+    type on 32-bit platforms). (Kamil Tekiela)

 19 Nov 2026, PHP 8.4.28

diff --git a/main/streams/cast.c b/main/streams/cast.c
index 6e5c63fb3b2..c88dd8be9e7 100644
--- a/main/streams/cast.c
+++ b/main/streams/cast.c
@@ -79,10 +79,10 @@ static int stream_cookie_writer(void *cookie, const char *buffer, int size)
 	return php_stream_write((php_stream *)cookie, (char *)buffer, size);
 }

-static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence)
+static PHP_FPOS_T stream_cookie_seeker(void *cookie, PHP_FPOS_T position, int whence)
 {

-	return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence);
+	return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, (zend_off_t)position, whence);
 }

 static int stream_cookie_closer(void *cookie)