Skip to content

Commit 50e08d6

Browse files
committed
Attempt to fix #69643
1 parent 0437aa2 commit 50e08d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,9 +2562,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
25622562
* use since curl needs a long not an int. */
25632563
form_error = curl_formadd(&first, &last,
25642564
CURLFORM_COPYNAME, string_key->val,
2565-
CURLFORM_NAMELENGTH, (zend_long)string_key->len,
2565+
CURLFORM_NAMELENGTH, string_key->len,
25662566
CURLFORM_COPYCONTENTS, postval->val,
2567-
CURLFORM_CONTENTSLENGTH, (zend_long)Z_STRLEN_P(current),
2567+
CURLFORM_CONTENTSLENGTH, postval->len,
25682568
CURLFORM_END);
25692569

25702570
if (form_error != CURL_FORMADD_OK) {

0 commit comments

Comments
 (0)