From: Michael Wallner Date: Sun, 18 Jan 2015 10:46:11 +0000 (+0100) Subject: fix headers to string generation X-Git-Tag: RELEASE_3_0_0_RC1~95 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ac85eae11f885c31e1883b3ee8b8a2443db80d86;p=m6w6%2Fext-http fix headers to string generation --- diff --git a/php_http_header.c b/php_http_header.c index 0ae381e..dfcba3c 100644 --- a/php_http_header.c +++ b/php_http_header.c @@ -72,12 +72,12 @@ void php_http_header_to_callback(HashTable *headers, zend_bool crlf, php_http_pa } } ZEND_HASH_FOREACH_END(); - } - } else { - zend_string *zs = php_http_header_value_to_string(header); + } else { + zend_string *zs = php_http_header_value_to_string(header); - cb(cb_arg, crlf ? "%s: %s" PHP_HTTP_CRLF : "%s: %s", key.key->val, zs->val); - zend_string_release(zs); + cb(cb_arg, crlf ? "%s: %s" PHP_HTTP_CRLF : "%s: %s", key.key->val, zs->val); + zend_string_release(zs); + } } } ZEND_HASH_FOREACH_END();