projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
- override INI(http.force_exit) when calling http_exit() in ob_etaghandler
[m6w6/ext-http]
/
http_api.c
diff --git
a/http_api.c
b/http_api.c
index 774e60335a1c70d7bb537bc6a6de88cacb8376e8..59466806a03e80b2bd0fd46aac0856ea9657e08f 100644
(file)
--- a/
http_api.c
+++ b/
http_api.c
@@
-147,7
+147,9
@@
STATUS _http_exit_ex(int status, char *header, char *body, zend_bool send_header
return FAILURE;
}
- php_end_ob_buffers(0 TSRMLS_CC);
+ if (!OG(ob_lock)) {
+ php_end_ob_buffers(0 TSRMLS_CC);
+ }
if ((SUCCESS == sapi_send_headers(TSRMLS_C)) && body) {
PHPWRITE(body, strlen(body));
}