X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_response_object.c;h=7e8c77c92f5d8dcc9382d4cfc86388dca7ca6965;hp=0d99e9025884a6876414f5f3da861f864d39cbfa;hb=8d67e2fd6546a2dbf567211496911fc2d93ff154;hpb=5db5dc24134fc71cd98ffb88ac138666703c897c 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; }