Fix php_http_message.c:136:14: warning: comparison between 'enum <anonymous>' and...
[m6w6/ext-http] / php_http_message.c
index 3d18e28..3ac9655 100644 (file)
@@ -133,7 +133,7 @@ PHP_HTTP_API php_http_message_t *php_http_message_parse(php_http_message_t *msg,
        if (greedy) {
                flags |= PHP_HTTP_MESSAGE_PARSER_GREEDY;
        }
-       if (FAILURE == php_http_message_parser_parse(&p, &buf, flags, &msg)) {
+       if (PHP_HTTP_MESSAGE_PARSER_STATE_FAILURE == php_http_message_parser_parse(&p, &buf, flags, &msg)) {
                if (free_msg) {
                        php_http_message_free(&msg);
                }