[php-src] PR #25821: Fix GH-25816: stream_lock() can close the stream while it is in use
| From: | lazerg | Date: | Fri, 27 Nov 2026 07:49:55 +0000 |
| Subject: | [php-src] PR #25821: Fix GH-25816: stream_lock() can close the stream while it is in use | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41094@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25821
Author: lazerg
Fixes GH-25816
Same gap as GH-25586:
stream_lock() was still called without
PHP_STREAM_FLAG_NO_FCLOSE set, so an fclose() of the stream from inside it
went through while flock() was still using the stream. This sets the flag around the
stream_lock() call too, so the fclose() there only warns, like it does for
the other handlers.