fix arg by ref handling
[m6w6/ext-http] / php_http_header.c
index dfcba3c4433851983e5802e2dfc36cf2b052fec7..6d47d99f2a78d399ca5d5fc24268aac6f97fcb66 100644 (file)
@@ -243,6 +243,7 @@ PHP_METHOD(HttpHeader, negotiate)
                return;
        }
        if (rs_array) {
+               ZVAL_DEREF(rs_array);
                zval_dtor(rs_array);
                array_init(rs_array);
        }