[php-src] PR #20475: Fix assertion failure when fseeking a phar file out of bounds
| From: | ndossche | Date: | Thu, 13 Nov 2025 22:21:36 +0000 |
| Subject: | [php-src] PR #20475: Fix assertion failure when fseeking a phar file out of bounds | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34045@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20475
Author: ndossche
In 61884c3b52 I added these FIXME comments after I noticed that this would cause an assertion
failure. At that time I did not yet know what to do here. I took a look at the code now and other
streams return -1 and leave the file position untouched. So we do the same for phar. This fixes the
assertion failure and subsequent crashes, but also changes one test output. However, I believe the
new test output is correct.