Skip to content

Commit

Permalink
post-5.5 changes for bug #46439 as described in the RFC
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Jan 29, 2013
1 parent 1ca429e commit 24447dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions UPGRADING
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/interface.c
Expand Up @@ -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 */
}
/* }}} */

Expand Down

0 comments on commit 24447dc

Please sign in to comment.