Symfony Polyfill 1.41.0 introduces a new `symfony/polyfill-io-poll` package that backports PHP 8.6's `Io\Poll` API to PHP 8.1 and later. The `Io\Poll` API provides an object-oriented interface for monitoring multiple sockets, pipes, or files for I/O readiness, replacing the cumbersome `stream_select()` approach. The polyfill uses a portable Poll backend without edge-triggered event support; on PHP 8.6+, the native implementation takes over automatically with optimized backends like epoll, kqueue, or WSAPoll. The release also includes compatibility fixes for Grapheme, Intl, and PHP version polyfills.
13.7K Impressions