X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_header.c;h=5a9ecd3bf136c8bfde5f21f931c45032760fae17;hp=92a2de4e49a96c31d076a0e1e77d61534f006d85;hb=refs%2Fheads%2Fv2.3.x;hpb=eaa046dc3e6496e523a17c3b786ef27067b9795c diff --git a/php_http_header.c b/php_http_header.c index 92a2de4..5a9ecd3 100644 --- a/php_http_header.c +++ b/php_http_header.c @@ -33,12 +33,7 @@ STATUS php_http_header_parse(const char *header, size_t length, HashTable *heade php_http_header_parser_dtor(&ctx); php_http_buffer_dtor(&buf); - if (rs == PHP_HTTP_HEADER_PARSER_STATE_FAILURE) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not parse headers"); - return FAILURE; - } - - return SUCCESS; + return rs == PHP_HTTP_HEADER_PARSER_STATE_FAILURE ? FAILURE : SUCCESS; } void php_http_header_to_callback(HashTable *headers, zend_bool crlf, php_http_pass_format_callback_t cb, void *cb_arg TSRMLS_DC)