1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00

Fix unsigned comparison

This commit is contained in:
Anatol Belski
2017-11-17 18:54:42 +01:00
parent 80b926d24d
commit c7bf314b65

View File

@@ -157,7 +157,7 @@ static php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper,
if (!context ||
(tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) == NULL ||
Z_TYPE_P(tmpzval) != IS_STRING ||
Z_STRLEN_P(tmpzval) <= 0) {
Z_STRLEN_P(tmpzval) == 0) {
php_url_free(resource);
return php_stream_open_wrapper_ex(path, mode, REPORT_ERRORS, NULL, context);
}