projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
- proper handling of static members
[m6w6/ext-http]
/
http_response_object.c
diff --git
a/http_response_object.c
b/http_response_object.c
index 1f2b58001cc8507d79e02ad7a4ddfe64801f7035..5ca8edd70fdb8f75a0039125f6efc1e517c43f36 100644
(file)
--- 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;
}