diff options
author | Felipe Pena <felipe@php.net> | 2009-03-16 15:08:56 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-03-16 15:08:56 +0000 |
commit | c7bfd897e63f65d38b1178c7e02da7ebd2bbf85e (patch) | |
tree | 7647d5fde51333601fb3f9c859e7b8b010d31598 /ext/curl/interface.c | |
parent | 8e202b40a01f38203145e0445e34849fe031b0da (diff) | |
download | php-git-c7bfd897e63f65d38b1178c7e02da7ebd2bbf85e.tar.gz |
- MFH: Fixed bug #47616 (curl keeps crashing)
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r-- | ext/curl/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 9065e5ae27..44e6c35e81 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1684,6 +1684,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu } else { #if LIBCURL_VERSION_NUM >= 0x071101 + convert_to_string_ex(zvalue); /* with curl 7.17.0 and later, we can use COPYPOSTFIELDS, but we have to provide size before */ error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, Z_STRVAL_PP(zvalue)); |