From 208f820769bb9b0dc7f0e57670bf8647946d25a7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 30 Jan 2017 12:40:36 +0100 Subject: [PATCH] deref --- src/php_http_header.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2