Fix php_http_message.c:136:14: warning: comparison between 'enum <anonymous>' and...
authorRemi Collet <remi@php.net>
Mon, 31 Dec 2012 13:53:22 +0000 (13:53 +0000)
committerRemi Collet <remi@php.net>
Mon, 31 Dec 2012 13:53:22 +0000 (13:53 +0000)
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);
                }