Advertisement
Guest User

Untitled

a guest
May 28th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.74 KB | None | 0 0
  1. diff --git a/ext/curl/interface.c b/ext/curl/interface.c
  2. index e0b9176..6e76ba8 100644
  3. --- a/ext/curl/interface.c
  4. +++ b/ext/curl/interface.c
  5. @@ -2562,9 +2562,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
  6.                      * use since curl needs a long not an int. */
  7.                     form_error = curl_formadd(&first, &last,
  8.                                          CURLFORM_COPYNAME, string_key->val,
  9. -                                        CURLFORM_NAMELENGTH, (zend_long)string_
  10. key->len,
  11. +                                        CURLFORM_NAMELENGTH, string_key->len,
  12.                                          CURLFORM_COPYCONTENTS, postval->val,
  13. -                                        CURLFORM_CONTENTSLENGTH, (zend_long)Z_S
  14. TRLEN_P(current),
  15. +                                        CURLFORM_CONTENTSLENGTH, postval->len,
  16.                                          CURLFORM_END);
  17.  
  18.                     if (form_error != CURL_FORMADD_OK) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement