[php-src] master: [skip ci] UPGRADING: Document missing Stream errors changes (#25498)

From: Date: Tue, 17 Nov 2026 16:16:13 +0000
Subject: [php-src] master: [skip ci] UPGRADING: Document missing Stream errors changes (#25498)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143766@lists.php.net to get a copy of this message
Author: Jordi Kroon (jordikroon) Committer: Weilin Du (LamentXU123) Date: 2026-11-18T00:13:48+08:00 Commit: https://github.com/php/php-src/commit/3349db007fbc334df186100193f7ea28f750447a Raw diff: https://github.com/php/php-src/commit/3349db007fbc334df186100193f7ea28f750447a.diff [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 Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 3f35954ac8d9..daa925feed3f 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

« previous php.cvs (#143766) next »