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:
41cb14f
)
support ob_clean
author
Michael Wallner
<mike@php.net>
Fri, 12 Jun 2015 06:25:10 +0000
(08:25 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 12 Jun 2015 06:25:10 +0000
(08:25 +0200)
php_http_env_response.c
patch
|
blob
|
history
diff --git
a/php_http_env_response.c
b/php_http_env_response.c
index be7effa3eaf1b4859d447fbc9821171180a09e15..892318657b9ea7a0dcf95b47abb931c1b6b1e8d3 100644
(file)
--- a/
php_http_env_response.c
+++ b/
php_http_env_response.c
@@
-1214,8
+1214,12
@@
static PHP_METHOD(HttpEnvResponse, __invoke)
PHP_HTTP_ENV_RESPONSE_OBJECT_INIT(obj);
php_http_message_object_init_body_object(obj);
+
php_http_message_body_append(obj->message->body, ob_str, ob_len);
#if PHP_VERSION_ID >= 50400
+ if (ob_flags & PHP_OUTPUT_HANDLER_CLEAN) {
+ php_stream_truncate_set_size(php_http_message_body_stream(obj->message->body), 0);
+ }
RETURN_TRUE;
#else
RETURN_EMPTY_STRING();