X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_functions.c;h=2cd1dfe554b4d5974253b35efed8eb37e5201186;hb=fe073d54f4a2929c77e4669c380041f7f6f3bcbd;hp=aeb41da2482de0316695c67b340968ec4b0a52f3;hpb=669d2e6a8bdc642b6b52693f4593f199ddd7e8d2;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index aeb41da..2cd1dfe 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1034,6 +1034,7 @@ PHP_FUNCTION(http_parse_headers) array_init(return_value); if (SUCCESS != http_parse_headers(header, return_value)) { zval_dtor(return_value); + http_error(HE_WARNING, HTTP_E_MALFORMED_HEADERS, "Failed to parse headers"); RETURN_FALSE; } }