diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-04-29 10:21:07 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-04-29 10:21:07 +0200 |
commit | c68dc6b5e37e74d89e0a387079139c054c8faa81 (patch) | |
tree | db61374f62438a00fc6dedd3eb7bf3d2ed88fcb9 /UPGRADING | |
parent | 22e9a5e0c382b6accefe809bf59ba08738427593 (diff) | |
download | php-git-c68dc6b5e37e74d89e0a387079139c054c8faa81.tar.gz |
Extend CURLFile to support streams
Due to former restrictions of the libcurl API, curl multipart/formdata
file uploads supported only proper files. However, as of curl 7.56.0
the new `curl_mime_*()` API is available (and already supported by
PHP[1]), which allows us to support arbitrary *seekable* streams, which
is generally desirable, and particularly resolves issues with the
transparent Unicode and long part support on Windows (see bug #77711).
Note that older curl versions are still supported, but CURLFile is
still restricted to proper files in this case.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=a83b68ba56714bfa06737a61af795460caa4a105>
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -129,6 +129,11 @@ PHP 7.4 UPGRADE NOTES . Support for WeakReferences has been added. RFC: https://wiki.php.net/rfc/weakrefs +- CURL: + . CURLFile now supports stream wrappers in addition to plain file names, if + the extension has been built against libcurl >= 7.56.0. The streams may + need to be seekable. + - Filter: . The FILTER_VALIDATE_FLOAT filter now supports the min_range and max_range options, with the same semantics as FILTER_VALIDATE_INT. |