[PHP-CVS] [php-src] master: streams: remove 'param' parameter of php_stream_wrapper_log_store_error()

[email protected] (Gina Peter Banyard)
Newsgroups php.cvs
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-17T14:33:38+01:00

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

streams: remove 'param' parameter of php_stream_wrapper_log_store_error()

It's always NULL

Changed paths:
  M  main/streams/stream_errors.c


Diff:

diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c
index e7d964e999f3..70c06b70182a 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);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.