[php-src] PR #21878: Split streams filter seekability into read and write fields
| From: | bukka | Date: | Sun, 26 Apr 2026 19:03:23 +0000 |
| Subject: | [php-src] PR #21878: Split streams filter seekability into read and write fields | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35900@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21878
Author: bukka
The single seekable field caused write-chain seeks to reset filter state after the bug #49874 fix,
breaking dechunk on php://temp (used by Symfony HttpClient).
Split into read_seekable and write_seekable. Write defaults to ALWAYS for stateless and
non-buffering filters. Buffer-holding filters (zlib, bz2, convert.*) accept a write_seek_mode
parameter: "preserve" (default), "reset", or "strict". Invalid values
throw ValueError.
php_user_filter::seek gains a third int $chain argument; the ops seek signature is unchanged.