- use add_next_index_string()
authorMichael Wallner <mike@php.net>
Sun, 11 Dec 2005 11:32:36 +0000 (11:32 +0000)
committerMichael Wallner <mike@php.net>
Sun, 11 Dec 2005 11:32:36 +0000 (11:32 +0000)
# $coffee++;

http_request_api.c

index 5c5d67cba8c9cdfc832e33f4ab93507570e029cf..9cbe1094d61ecc4e2bfe91f0e4558cf56352606c 100644 (file)
@@ -146,10 +146,7 @@ PHP_MSHUTDOWN_FUNCTION(http_request)
                                MAKE_STD_ZVAL(subarray); \
                                array_init(subarray); \
                                for (p = l; p; p = p->next) { \
-                                       zval *entry; \
-                                       MAKE_STD_ZVAL(entry); \
-                                       ZVAL_STRING(entry, p->data, 1); \
-                                       add_next_index_zval(subarray, entry); \
+                                       add_next_index_string(subarray, p->data, 1); \
                                } \
                                add_assoc_zval(&array, pretty_key(http_request_data_copy(COPY_STRING, #X), sizeof(#X)-1, 0, 0), subarray); \
                                curl_slist_free_all(l); \