Commit 857593148d5 for php.net

commit 857593148d5669003d1530033b994c54dd2941ae
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date:   Sun May 31 12:23:51 2026 +0200

    Fix stream_last_errors() rcn hint (GH-22194)

    This function returns the static empty array, which has rc2 to avoid direct
    mutation.

diff --git a/Zend/Optimizer/zend_func_infos.h b/Zend/Optimizer/zend_func_infos.h
index b76785283dc..2a9353c9b86 100644
--- a/Zend/Optimizer/zend_func_infos.h
+++ b/Zend/Optimizer/zend_func_infos.h
@@ -596,7 +596,7 @@ static const func_info_t func_infos[] = {
 	F1("stream_get_line", MAY_BE_STRING|MAY_BE_FALSE),
 	F1("stream_resolve_include_path", MAY_BE_STRING|MAY_BE_FALSE),
 	F1("stream_get_wrappers", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
-	F1("stream_last_errors", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_OBJECT),
+	FN("stream_last_errors", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_OBJECT),
 	F1("stream_get_transports", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
 #if defined(HAVE_GETTIMEOFDAY)
 	F1("uniqid", MAY_BE_STRING),
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index b63d4f404a7..7f7e0de0f65 100644
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -3564,7 +3564,6 @@ function stream_resolve_include_path(string $filename): string|false {}
 function stream_get_wrappers(): array {}

 /**
- * @refcount 1
  * @return array<int, StreamError>
  */
 function stream_last_errors(): array {}
@@ -3577,7 +3576,7 @@ function stream_clear_errors(): void {}
  */
 function stream_get_transports(): array {}

-/**
+/**
  * @param resource|string $stream
  * @param resource|null $context
  */
diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h
index ca72962d34e..a17efc6961d 100644
Binary files a/ext/standard/basic_functions_arginfo.h and b/ext/standard/basic_functions_arginfo.h differ
diff --git a/ext/standard/basic_functions_decl.h b/ext/standard/basic_functions_decl.h
index 8e92337ba37..067959c8b5f 100644
Binary files a/ext/standard/basic_functions_decl.h and b/ext/standard/basic_functions_decl.h differ