projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
05fd3f5
)
- return error if headers have been already sent
author
Michael Wallner
<mike@php.net>
Fri, 22 Jul 2005 09:45:56 +0000
(09:45 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 22 Jul 2005 09:45:56 +0000
(09:45 +0000)
http_response_object.c
patch
|
blob
|
history
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;
}