summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 7659d57ada..07b4ad3550 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -2007,10 +2007,6 @@ string_copy:
HashTable *postfields;
struct HttpPost *first = NULL;
struct HttpPost *last = NULL;
- char *postval;
- char *string_key = NULL;
- ulong num_key;
- uint string_key_len;
postfields = HASH_OF(*zvalue);
if (!postfields) {
@@ -2023,6 +2019,10 @@ string_copy:
zend_hash_get_current_data(postfields, (void **) &current) == SUCCESS;
zend_hash_move_forward(postfields)
) {
+ char *postval;
+ char *string_key = NULL;
+ uint string_key_len;
+ ulong num_key;
SEPARATE_ZVAL(current);
convert_to_string_ex(current);