From 6a3284c961bae726cfe12c8b1a5f7cabb3bb06af Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 16 Aug 2026 14:57:45 +0200 Subject: [PATCH] fix flagging a stream as blocking --- CHANGELOG.md | 1 + src/Internal/Stream/AmbientAuthority.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 290eac5..2b6ee68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixed - Deleting a link pointing to a directory now delete the link instead of the directory content +- Flagging a stream as blocking was set as non-blocking ## 4.1.2 - 2026-08-01 diff --git a/src/Internal/Stream/AmbientAuthority.php b/src/Internal/Stream/AmbientAuthority.php index 7d08128..d0e69fa 100644 --- a/src/Internal/Stream/AmbientAuthority.php +++ b/src/Internal/Stream/AmbientAuthority.php @@ -122,7 +122,7 @@ public function blocking(): Maybe return Maybe::nothing(); } - $return = \stream_set_blocking($this->resource, false); + $return = \stream_set_blocking($this->resource, true); if ($return === false) { /** @var Maybe */