Skip to content

Commit 24447dc

Browse files
committed
post-5.5 changes for bug #46439 as described in the RFC
1 parent 1ca429e commit 24447dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎UPGRADING‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ PHP X.Y UPGRADE NOTES
4040
4. Changed Functions
4141
========================================
4242

43+
- cURL:
44+
CURLOPT_SAFE_UPLOAD is now turned on by default and uploads with @file
45+
do not work unless it is explicitly set to false.
4346

4447
========================================
4548
5. New Functions

‎ext/curl/interface.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ static void alloc_curl_handle(php_curl **ch)
18221822
zend_llist_init(&(*ch)->to_free->str, sizeof(char *), (llist_dtor_func_t) curl_free_string, 0);
18231823
zend_llist_init(&(*ch)->to_free->slist, sizeof(struct curl_slist), (llist_dtor_func_t) curl_free_slist, 0);
18241824
zend_llist_init(&(*ch)->to_free->post, sizeof(struct HttpPost), (llist_dtor_func_t) curl_free_post, 0);
1825-
(*ch)->safe_upload = 0; /* for now, for BC reason we allow unsafe API */
1825+
(*ch)->safe_upload = 1; /* for now, for BC reason we allow unsafe API */
18261826
}
18271827
/* }}} */
18281828

0 commit comments

Comments
 (0)