]> granicus.if.org Git - php/commitdiff
- Fixed bug #47616 (curl keeps crashing)
authorFelipe Pena <felipe@php.net>
Mon, 16 Mar 2009 15:05:21 +0000 (15:05 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 16 Mar 2009 15:05:21 +0000 (15:05 +0000)
ext/curl/interface.c

index b63660cb71d3c0e315924da33b20eaad968c0e54..c6274a144adc639188e9cf834e454aa7c1ec53d6 100644 (file)
@@ -1747,6 +1747,7 @@ type_conflict:
 
                        } 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));