Fix missing ZVAL_DEREF()
authorBob Weinand <bobwei9@hotmail.com>
Sat, 10 Jan 2015 21:29:00 +0000 (22:29 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Sat, 10 Jan 2015 21:29:00 +0000 (22:29 +0100)
ext/standard/http.c

index 9c9d1dc5306cca7e1428e3b419022d5216fd28b4..4b454476f2db30de4cfc03a165e24e4d426fad96 100644 (file)
@@ -76,6 +76,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
                        prop_len = 0;
                }
 
+               ZVAL_DEREF(zdata);
                if (Z_TYPE_P(zdata) == IS_ARRAY || Z_TYPE_P(zdata) == IS_OBJECT) {
                        if (key) {
                                zend_string *ekey;