From: Anatol Belski Date: Fri, 17 Nov 2017 17:54:42 +0000 (+0100) Subject: Fix unsigned comparison X-Git-Tag: php-7.3.0alpha1~996 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7bf314b65bc1c698c2b6e04ce9f1df807e58976;p=php Fix unsigned comparison --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 6e02743a5b..4156fcbfab 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -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); }