diff options
author | Sterling Hughes <sterling@php.net> | 2001-12-03 12:24:03 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-12-03 12:24:03 +0000 |
commit | 80f4a863f902eb0a72d79e33a47e110b3cb0861a (patch) | |
tree | 8fe2dc166b2ab58f976ce7088d733c1c9e7c0600 | |
parent | fa58a950356c12c6f6eb481e8350b27890295758 (diff) | |
download | php-git-80f4a863f902eb0a72d79e33a47e110b3cb0861a.tar.gz |
Add a content length field to perhaps eliminate null truncation
-rw-r--r-- | ext/curl/curl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c index 977eae470f..66f8879d32 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -799,7 +799,9 @@ PHP_FUNCTION(curl_setopt) } else { error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key, - CURLFORM_PTRCONTENTS, postval, CURLFORM_END); + CURLFORM_PTRCONTENTS, postval, + CURLFORM_CONTENTSLENGTH, Z_STRLEN_PP(current), + CURLFORM_END); } } |