Added postredir request options constants
[m6w6/ext-http] / http_url_api.c
index f67d91a3e40a1a66773f3f9c2095e642a3e008f6..09558a246386f767a14365af4bc80bb7b6e52a0c 100644 (file)
@@ -445,7 +445,7 @@ PHP_HTTP_API STATUS _http_urlencode_hash_recursive(HashTable *ht, phpstr *str, c
                                return FAILURE;
                        }
                } else {
-                       zval *val = zval_copy(IS_STRING, *data);
+                       zval *val = http_zsep(IS_STRING, *data);
                        
                        if (PHPSTR_LEN(str)) {
                                phpstr_append(str, arg_sep, arg_sep_len);
@@ -462,7 +462,7 @@ PHP_HTTP_API STATUS _http_urlencode_hash_recursive(HashTable *ht, phpstr *str, c
                                efree(encoded_val);
                        }
                        
-                       zval_free(&val);
+                       zval_ptr_dtor(&val);
                }
                phpstr_dtor(&new_prefix);
        }