[php-src] PR #18973: Fix GH-17345: Bug #35916 was not completely fixed
| From: | nielsdos | Date: | Sat, 28 Jun 2025 23:15:29 +0000 |
| Subject: | [php-src] PR #18973: Fix GH-17345: Bug #35916 was not completely fixed | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32242@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18973
Author: nielsdos
Change the reproducer code in
bug35916.phpt from stream_bucket_append to
stream_bucket_prepend and you have the same bug. Furthermore, even in the append case
the check is incorrect because the bucket can already be in the brigade at a position other than the
tail. To solve this properly, unlink the brigade first and also use that as a condition to manage
the refcount.