From 4b918f89dfd55ec1b4cc928b50f33e35567ed533 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 22 Jul 2005 09:45:56 +0000 Subject: [PATCH] - return error if headers have been already sent --- http_response_object.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2