summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-05-29 00:03:19 +0800
committerXinchen Hui <laruence@php.net>2015-05-29 00:03:19 +0800
commit50e08d60b66d7cdc47f61fbe73b7ebfea8da0acc (patch)
tree7a58039c33b5eac6d19e73146acea014dc6e9b33 /ext/curl
parent0437aa2abf1eb494e4555d7d4dfbdbf566a59bdc (diff)
downloadphp-git-50e08d60b66d7cdc47f61fbe73b7ebfea8da0acc.tar.gz
Attempt to fix #69643
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index e0b9176200..6e76ba815b 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -2562,9 +2562,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
* use since curl needs a long not an int. */
form_error = curl_formadd(&first, &last,
CURLFORM_COPYNAME, string_key->val,
- CURLFORM_NAMELENGTH, (zend_long)string_key->len,
+ CURLFORM_NAMELENGTH, string_key->len,
CURLFORM_COPYCONTENTS, postval->val,
- CURLFORM_CONTENTSLENGTH, (zend_long)Z_STRLEN_P(current),
+ CURLFORM_CONTENTSLENGTH, postval->len,
CURLFORM_END);
if (form_error != CURL_FORMADD_OK) {