[php-src] master: streams: mark php_stream_error_create_array() as static

Gina Peter Banyard <[email protected]> Mon, 27 Jul 2026 17:00:53 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-27T18:00:42+01:00

Commit: https://github.com/php/php-src/commit/bd8a3ee16fa88565be7dd99a457ff372a8bec52b
Raw diff: https://github.com/php/php-src/commit/bd8a3ee16fa88565be7dd99a457ff372a8bec52b.diff

streams: mark php_stream_error_create_array() as static

It's not exported in a header and only used in the file it is defined

Changed paths:
  M  main/streams/stream_errors.c


Diff:

diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c
index b2dfdbb217ad..9ee6127df777 100644
--- a/main/streams/stream_errors.c
+++ b/main/streams/stream_errors.c
@@ -69,7 +69,7 @@ static void php_stream_error_create_object(zval *zv, php_stream_error_entry *ent
 }
 
 /* Create array of StreamError objects from error chain */
-PHPAPI void php_stream_error_create_array(zval *zv, php_stream_error_entry *first)
+static void php_stream_error_create_array(zval *zv, php_stream_error_entry *first)
 {
 	array_init(zv);