Skip to content

Commit 7cd388b

Browse files
author
Sjoerd Langkemper
committed
Use new stream error API
Parallel to this work, the stream_errors RFC was accepted and merged. Use the new API php_stream_wrapper_log_warn to report the error of too many filters.
1 parent e4ed866 commit 7cd388b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ext/standard/php_fopen_wrapper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ static php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const c
425425
}
426426

427427
if (php_stream_has_too_many_filters(stream, context)) {
428-
php_stream_wrapper_log_error(wrapper, options, "too many filters");
428+
php_stream_wrapper_log_warn(wrapper, context, options,
429+
PathTooLong, "too many filters");
429430
php_stream_close(stream);
430431
return NULL;
431432
}

0 commit comments

Comments
 (0)