hoppla
authorMichael Wallner <mike@php.net>
Fri, 22 Jul 2005 15:32:11 +0000 (15:32 +0000)
committerMichael Wallner <mike@php.net>
Fri, 22 Jul 2005 15:32:11 +0000 (15:32 +0000)
http_response_object.c

index 0d99e9025884a6876414f5f3da861f864d39cbfa..7e8c77c92f5d8dcc9382d4cfc86388dca7ca6965 100644 (file)
@@ -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;
        }