deref
authorMichael Wallner <mike@php.net>
Mon, 30 Jan 2017 11:40:36 +0000 (12:40 +0100)
committerMichael Wallner <mike@php.net>
Mon, 30 Jan 2017 11:40:36 +0000 (12:40 +0100)
src/php_http_header.c

index 91204c13fa7169f1ab25de7c9dc8dbbea6840e16..8c71cdeceaae7f2c4d75db7abe998477b24b4490 100644 (file)
@@ -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)