Skip to content

Commit dec19ed

Browse files
committed
streams: remove 'param' parameter of php_stream_wrapper_log_store_error()
It's always NULL
1 parent b06eb82 commit dec19ed

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

main/streams/stream_errors.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,15 +665,13 @@ static void php_stream_error_list_dtor(zval *item)
665665
}
666666

667667
static void php_stream_wrapper_log_store_error(zend_string *message, zend_enum_StreamErrorCode code,
668-
const char *wrapper_name, const char *param, int severity, bool terminating)
668+
const char *wrapper_name, int severity, bool terminating)
669669
{
670-
char *param_copy = param ? estrdup(param) : NULL;
671-
672670
php_stream_error_entry *entry = ecalloc(1, sizeof(php_stream_error_entry));
673671
entry->message = message;
674672
entry->code = code;
675673
entry->wrapper_name = wrapper_name ? estrdup(wrapper_name) : NULL;
676-
entry->param = param_copy;
674+
entry->param = NULL;
677675
entry->severity = severity;
678676
entry->terminating = terminating;
679677

@@ -710,7 +708,7 @@ PHPAPI void php_stream_wrapper_log_error(const php_stream_wrapper *wrapper,
710708
wrapper_name, context, NULL, options, severity, terminating, code, NULL, message);
711709
} else {
712710
php_stream_wrapper_log_store_error(
713-
message, code, wrapper_name, NULL, severity, terminating);
711+
message, code, wrapper_name, severity, terminating);
714712
}
715713
va_end(args);
716714
}

0 commit comments

Comments
 (0)