X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_response_object.c;h=5ca8edd70fdb8f75a0039125f6efc1e517c43f36;hp=1f2b58001cc8507d79e02ad7a4ddfe64801f7035;hb=4b918f89dfd55ec1b4cc928b50f33e35567ed533;hpb=05fd3f5b6e302959111b33ea8b259d7ee5e97438 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; }