fix clang warning
authorMichael Wallner <mike@php.net>
Fri, 15 Nov 2013 11:18:32 +0000 (11:18 +0000)
committerMichael Wallner <mike@php.net>
Fri, 15 Nov 2013 11:18:32 +0000 (11:18 +0000)
php_http_message_parser.c

index cc29c288b8521a7605a3d4c7d5a7c37918e4d336..d6e7c260b57cc12f2326333d8d3d9baad1ad6799 100644 (file)
@@ -451,7 +451,7 @@ PHP_HTTP_API php_http_message_parser_state_t php_http_message_parser_parse(php_h
                                size_t dec_len;
 
                                if (SUCCESS != php_http_encoding_stream_update(parser->dechunk, buffer->data, buffer->used, &dec_str, &dec_len)) {
-                                       return FAILURE;
+                                       return PHP_HTTP_MESSAGE_PARSER_STATE_FAILURE;
                                }
 
                                str = dec_str;