From: Michael Wallner Date: Fri, 22 Jul 2005 09:45:56 +0000 (+0000) Subject: - return error if headers have been already sent X-Git-Tag: RELEASE_0_10_0~23 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4b918f89dfd55ec1b4cc928b50f33e35567ed533;p=m6w6%2Fext-http - return error if headers have been already sent --- diff --git a/http_response_object.c b/http_response_object.c index 1f2b580..5ca8edd 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -593,6 +593,7 @@ PHP_METHOD(HttpResponse, send) RETURN_FALSE; } if (SG(headers_sent)) { + http_error(E_WARNING, HTTP_E_HEADER, "Cannot send HttpResponse, headers have already been sent"); RETURN_FALSE; }