Skip to content

Commit 8341f8f

Browse files
committed
Fix stream_last_errors() rcn hint
This function returns the static empty array, which has rc2 to avoid direct mutation.
1 parent b14702a commit 8341f8f

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

Zend/Optimizer/zend_func_infos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static const func_info_t func_infos[] = {
596596
F1("stream_get_line", MAY_BE_STRING|MAY_BE_FALSE),
597597
F1("stream_resolve_include_path", MAY_BE_STRING|MAY_BE_FALSE),
598598
F1("stream_get_wrappers", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
599-
F1("stream_last_errors", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_OBJECT),
599+
FN("stream_last_errors", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_OBJECT),
600600
F1("stream_get_transports", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
601601
#if defined(HAVE_GETTIMEOFDAY)
602602
F1("uniqid", MAY_BE_STRING),

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,7 +3564,6 @@ function stream_resolve_include_path(string $filename): string|false {}
35643564
function stream_get_wrappers(): array {}
35653565

35663566
/**
3567-
* @refcount 1
35683567
* @return array<int, StreamError>
35693568
*/
35703569
function stream_last_errors(): array {}
@@ -3577,7 +3576,7 @@ function stream_clear_errors(): void {}
35773576
*/
35783577
function stream_get_transports(): array {}
35793578

3580-
/**
3579+
/**
35813580
* @param resource|string $stream
35823581
* @param resource|null $context
35833582
*/

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions_decl.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)