diff options
Diffstat (limited to 'sapi/cli/php_http_parser.c')
-rw-r--r-- | sapi/cli/php_http_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/php_http_parser.c b/sapi/cli/php_http_parser.c index 63769c15ac..bb1c4924a0 100644 --- a/sapi/cli/php_http_parser.c +++ b/sapi/cli/php_http_parser.c @@ -244,7 +244,7 @@ enum flags #define start_state (parser->type == PHP_HTTP_REQUEST ? s_start_req : s_start_res) -#if HTTP_PARSER_STRICT +#ifdef HTTP_PARSER_STRICT # define STRICT_CHECK(cond) if (cond) goto error # define NEW_MESSAGE() (http_should_keep_alive(parser) ? start_state : s_dead) #else @@ -1315,7 +1315,7 @@ size_t php_http_parser_execute (php_http_parser *parser, nread = 0; - if (parser->flags & F_UPGRADE || parser->method == PHP_HTTP_CONNECT) { + if ((parser->flags & F_UPGRADE) || parser->method == PHP_HTTP_CONNECT) { parser->upgrade = 1; } |