summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-12-03 12:24:03 +0000
committerSterling Hughes <sterling@php.net>2001-12-03 12:24:03 +0000
commit80f4a863f902eb0a72d79e33a47e110b3cb0861a (patch)
tree8fe2dc166b2ab58f976ce7088d733c1c9e7c0600
parentfa58a950356c12c6f6eb481e8350b27890295758 (diff)
downloadphp-git-80f4a863f902eb0a72d79e33a47e110b3cb0861a.tar.gz
Add a content length field to perhaps eliminate null truncation
-rw-r--r--ext/curl/curl.c4
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);
}
}