[php-src] PR #12058: Fix bug #52335 (fseek() on memory stream behavior different then file)
| From: | bukka | Date: | Sun, 27 Aug 2023 15:01:41 +0000 |
| Subject: | [php-src] PR #12058: Fix bug #52335 (fseek() on memory stream behavior different then file) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23491@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12058
Author: bukka
This changes memory stream to allow seeking past end which makes it the same as seeking on files. It
means the position is allowed to be higher than the string length. The size only increases if data
is appended to the past position. The space between the previous string and position is filled with
zero bytes.
Except other things this also allows seeking on
php://input before data is written into
it.