[php-src] PHP-8.4: Change the type of position in stream_cookie_seeker (#25354)

From: Date: Tue, 10 Nov 2026 01:01:57 +0000
Subject: [php-src] PHP-8.4: Change the type of position in stream_cookie_seeker (#25354)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143507@lists.php.net to get a copy of this message
Author: Kamil Tekiela (kamil-tekiela) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-11-10T01:01:53Z Commit: https://github.com/php/php-src/commit/ba2264028cc564a3ccd3933ed632d7f0af07c274 Raw diff: https://github.com/php/php-src/commit/ba2264028cc564a3ccd3933ed632d7f0af07c274.diff Change the type of position in stream_cookie_seeker (#25354) Changed paths: M NEWS M main/streams/cast.c Diff: diff --git a/NEWS b/NEWS index 04f6aec330c2..f13aa1a98174 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 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)

« previous php.cvs (#143507) next »