Commit dec19edc4ba for php.net

commit dec19edc4badf33e55b1346711efebf789d9fe92
Author: Gina Peter Banyard <girgias@php.net>
Date:   Thu Jul 16 18:32:13 2026 +0100

    streams: remove 'param' parameter of php_stream_wrapper_log_store_error()

    It's always NULL

diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c
index e7d964e999f..70c06b70182 100644
--- a/main/streams/stream_errors.c
+++ b/main/streams/stream_errors.c
@@ -665,15 +665,13 @@ static void php_stream_error_list_dtor(zval *item)
 }

 static void php_stream_wrapper_log_store_error(zend_string *message, zend_enum_StreamErrorCode code,
-		const char *wrapper_name, const char *param, int severity, bool terminating)
+		const char *wrapper_name, int severity, bool terminating)
 {
-	char *param_copy = param ? estrdup(param) : NULL;
-
 	php_stream_error_entry *entry = ecalloc(1, sizeof(php_stream_error_entry));
 	entry->message = message;
 	entry->code = code;
 	entry->wrapper_name = wrapper_name ? estrdup(wrapper_name) : NULL;
-	entry->param = param_copy;
+	entry->param = NULL;
 	entry->severity = severity;
 	entry->terminating = terminating;

@@ -710,7 +708,7 @@ PHPAPI void php_stream_wrapper_log_error(const php_stream_wrapper *wrapper,
 				wrapper_name, context, NULL, options, severity, terminating, code, NULL, message);
 	} else {
 		php_stream_wrapper_log_store_error(
-				message, code, wrapper_name, NULL, severity, terminating);
+				message, code, wrapper_name, severity, terminating);
 	}
 	va_end(args);
 }