[php-src] master: streams: remove 'param' parameter of php_stream_wrapper_log_store_error()
Gina Peter Banyard <[email protected]> Fri, 17 Jul 2026 13:33:48 +0000
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| 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);
}