X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_message_parser.c;h=d6e7c260b57cc12f2326333d8d3d9baad1ad6799;hb=975cb208a4711c01261dd76630ef793efd1294fa;hp=5d80766bef40f450e4f94ac36e6b04c3aa3fcc2b;hpb=34c8af32031e2e847b4919402373ad70fc28a863;p=m6w6%2Fext-http diff --git a/php_http_message_parser.c b/php_http_message_parser.c index 5d80766..d6e7c26 100644 --- a/php_http_message_parser.c +++ b/php_http_message_parser.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2011, Michael Wallner | + | Copyright (c) 2004-2013, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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;