mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
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.