Commit 3349db007fb for php

commit 3349db007fbc334df186100193f7ea28f750447a
Author: Jordi Kroon <jkroon@onyourmarks.agency>
Date:   Mon Nov 16 20:24:38 2026 +0000

    [skip ci] UPGRADING: Document missing Stream errors changes (#25498)

    Document the stream error API changes introduced by
    f2b371e747d26351cacba99d7fd696a5844e83fb in PHP 8.6.

    The affected stream functions now accept an optional $context argument.
    stream_context_set_default() throws a ValueError for error_mode,
    error_store or error_handler stream context options.

    RFC: https://wiki.php.net/rfc/stream_errors

    Closes #25498

diff --git a/UPGRADING b/UPGRADING
index 3f35954ac8d..daa925feed3 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -784,6 +784,12 @@ PHP 8.6 UPGRADE NOTES
   . fclose(), file_put_contents() and copy() now return false when flushing
     or closing the stream fails. Previously such failures were silently
     ignored.
+  . stream_select(), stream_copy_to_stream(), stream_socket_pair() and
+    stream_is_local() now have an additional optional argument $context.
+    RFC: https://wiki.php.net/rfc/stream_errors
+  . stream_context_set_default() now throws a ValueError if $options contains
+    the error_mode, error_store or error_handler stream context option.
+    RFC: https://wiki.php.net/rfc/stream_errors

 - Zip:
   . zip_entry_close() return type has been narrowed from bool to true. The