fix bad merge; keys were serialized twice
[m6w6/ext-http] / php_http_negotiate.c
index 1535b86c67f1c077cb49cb8337b0e99113ea5a3d..ede406f9c2a96718801c8199f67a0426ce99cc4b 100644 (file)
@@ -92,6 +92,7 @@ static int php_http_negotiate_reduce(zval *p, int num_args, va_list args, zend_h
        ZEND_HASH_FOREACH_END();
 
        if (q && Z_DVAL_P(q) > 0) {
+               Z_TRY_ADDREF_P(q);
                zend_hash_update(result, supported, q);
        }