]> granicus.if.org Git - php/commitdiff
Fix unsigned comparison
authorAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 17:54:42 +0000 (18:54 +0100)
committerAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 17:54:42 +0000 (18:54 +0100)
ext/standard/http_fopen_wrapper.c

index 6e02743a5bbf5d202be8fd38aa40e3031572dffc..4156fcbfab2d1dbf5ce34b1a5d273312ca9b0818 100644 (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);
                }