From: Michael Wallner Date: Mon, 30 Jan 2017 11:40:36 +0000 (+0100) Subject: deref X-Git-Tag: RELEASE_3_2_0_RC1~61 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=208f820769bb9b0dc7f0e57670bf8647946d25a7;p=m6w6%2Fext-http deref --- diff --git a/src/php_http_header.c b/src/php_http_header.c index 91204c1..8c71cde 100644 --- a/src/php_http_header.c +++ b/src/php_http_header.c @@ -100,6 +100,7 @@ void php_http_header_to_callback_ex(const char *key, zval *val, zend_bool crlf, zval *aval; zend_string *str; + ZVAL_DEREF(val); switch (Z_TYPE_P(val)) { case IS_ARRAY: ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(val), aval)