projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
66ab8a7
)
- use add_next_index_string()
author
Michael Wallner
<mike@php.net>
Sun, 11 Dec 2005 11:32:36 +0000
(11:32 +0000)
committer
Michael Wallner
<mike@php.net>
Sun, 11 Dec 2005 11:32:36 +0000
(11:32 +0000)
# $coffee++;
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index 5c5d67cba8c9cdfc832e33f4ab93507570e029cf..9cbe1094d61ecc4e2bfe91f0e4558cf56352606c 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-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); \