[php-src] PR #19158: streams: Re-add support for arbitrary metadata for stream notifier functions

From: Date: Thu, 17 Jul 2025 13:37:39 +0000
Subject: [php-src] PR #19158: streams: Re-add support for arbitrary metadata for stream notifier functions
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32485@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19158 Author: TimWolla Support for attaching arbitrary metadata for consumption by stream notifier functions got broken in php/php-src#19024 when the previous zval ptr got changed to zend_fcall_info_cache *fcc, making the data specific to the user_space_stream_notifier. Fix this by changing the field to void *ptr, avoiding the indirection through a zval, but preserving the ability to store arbitrary data. If necessary to support different types than IS_PTR, extensions can heap-allocate a zval to store within ->ptr as a minimal change to keep compatibility with PHP 8.4 or lower.

« previous php.git-pulls (#32485) next »