From: Michael Wallner Date: Fri, 22 Jul 2005 15:32:11 +0000 (+0000) Subject: hoppla X-Git-Tag: RELEASE_0_10_0~17 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8d67e2fd6546a2dbf567211496911fc2d93ff154;p=m6w6%2Fext-http hoppla --- diff --git a/http_response_object.c b/http_response_object.c index 0d99e90..7e8c77c 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -612,10 +612,11 @@ PHP_METHOD(HttpResponse, send) http_error(E_WARNING, HTTP_E_HEADER, "Cannot send HttpResponse, headers have already been sent"); RETURN_FALSE; } - + sent = GET_STATIC_PROP(sent); if (Z_LVAL_P(sent)) { http_error(E_WARNING, HTTP_E_UNKOWN, "Cannot send HttpResponse, response has already been sent"); + RETURN_FALSE; } else { Z_LVAL_P(sent) = 1; }