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 3d18e28f7e08ac560009a18fa0acf789458e3b2b..3ac96550b5ac20bf8d819775c635d879b034ed66 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);
                }