diff --git a/NEWS b/NEWS index a63b79ed1302..e43ac799f4eb 100644 --- a/NEWS +++ b/NEWS @@ -68,6 +68,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 6e5c63fb3b29..c88dd8be9e7a 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)