From: Michael Wallner Date: Tue, 16 Jun 2015 10:24:48 +0000 (+0200) Subject: backport check X-Git-Tag: RELEASE_2_5_0~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=693770d1c7ec8f618c56907574e53a0eb1a7d68e;p=m6w6%2Fext-http backport check --- diff --git a/php_http_env_response.c b/php_http_env_response.c index 8923186..097bdba 100644 --- a/php_http_env_response.c +++ b/php_http_env_response.c @@ -1213,8 +1213,9 @@ static PHP_METHOD(HttpEnvResponse, __invoke) PHP_HTTP_ENV_RESPONSE_OBJECT_INIT(obj); - php_http_message_object_init_body_object(obj); - + if (!obj->body) { + 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) {