Commit: 24447dca5d308d0e4f5bab129d0050d6fe0c3163 Author: Stanislav Malyshev <s...@php.net> Mon, 28 Jan 2013 22:26:59 -0800 Parents: 1ca429e1d64a670e292fba64f3f97ea948860549 Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24447dca5d308d0e4f5bab129d0050d6fe0c3163 Log: post-5.5 changes for bug #46439 as described in the RFC Bugs: https://bugs.php.net/46439 Changed paths: M UPGRADING M ext/curl/interface.c Diff: diff --git a/UPGRADING b/UPGRADING index c34101d..a8fa5f8 100755 --- a/UPGRADING +++ b/UPGRADING @@ -40,6 +40,9 @@ PHP X.Y UPGRADE NOTES 4. Changed Functions ======================================== +- cURL: + CURLOPT_SAFE_UPLOAD is now turned on by default and uploads with @file + do not work unless it is explicitly set to false. ======================================== 5. New Functions diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 0714148..ab9e12c 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1822,7 +1822,7 @@ static void alloc_curl_handle(php_curl **ch) zend_llist_init(&(*ch)->to_free->str, sizeof(char *), (llist_dtor_func_t) curl_free_string, 0); zend_llist_init(&(*ch)->to_free->slist, sizeof(struct curl_slist), (llist_dtor_func_t) curl_free_slist, 0); zend_llist_init(&(*ch)->to_free->post, sizeof(struct HttpPost), (llist_dtor_func_t) curl_free_post, 0); - (*ch)->safe_upload = 0; /* for now, for BC reason we allow unsafe API */ + (*ch)->safe_upload = 1; /* for now, for BC reason we allow unsafe API */ } /* }}} */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php