php-src/ext/curl
Christoph M. Becker 2d0dec91a5 Fix #79019: Copied cURL handles upload empty file
To cater to `curl_copy_handle()` of cURL handles with attached
`CURLFile`s, we must not attach the opened stream, because the stream
may not be seekable, so that we could rewind, when the same stream is
going to be uploaded multiple times.  Instead, we're opening the stream
lazily in the read callback.

Since `curl_multi_perfom()` processes easy handles asynchronously, we
have no control of the operation sequence.  Since duplicated cURL
handles may be used with multi handles, we cannot use a single arg
structure, but actually have to rebuild the whole mime structure on
handle duplication and attach this to the new handle.

In order to better test this behavior, we extend the test responder to
print the size of the upload, and patch the existing tests accordingly.
2020-02-04 11:09:28 +01:00
..
tests Fix #79019: Copied cURL handles upload empty file 2020-02-04 11:09:28 +01:00
config.m4 Don't link against openssl 1.1 in curl 2020-01-06 10:42:57 +01:00
config.w32 Clean up curl openssl check 2020-01-06 10:17:37 +01:00
CREDITS
curl_file.c Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
interface.c Fix #79019: Copied cURL handles upload empty file 2020-02-04 11:09:28 +01:00
multi.c Merge branch 'PHP-7.3' into PHP-7.4 2020-01-08 18:31:38 +01:00
php_curl.h Fix #79019: Copied cURL handles upload empty file 2020-02-04 11:09:28 +01:00
share.c Remove local variables 2019-02-03 21:03:00 +01:00
sync-constants.php Merge branch 'PHP-7.3' into PHP-7.4 2019-05-02 15:13:24 +02:00