php-src/ext/curl
Daniel Stenberg d9d253fa6b curl_exec: remove bad check for CURLE_PARTIAL_FILE
This check introduced in 2004 is wrong and removed. A HEAD request with
curl does *not* cause this error code - only if you make a regular GET
request but tell curl to send a HEAD using CURLOPT_CUSTOMREQUEST and
then you've asked for it.

You do a proper HEAD request with curl by setting the CURLOPT_NOBODY
option to 1L.

This was the case in 2004. This is still the case in 2019. This is also
documented in libcurl documentation.

This check hides the possibly serious error when this error code is
genuinely and correctly returned by curl because the transfer was
truncated and ended up partial.

As can be seen, I objected to this change already in the original bug:
https://bugs.php.net/bug.php?id=27341
2019-03-11 09:56:25 +01:00
..
tests More zpp error/variation test removals 2019-03-07 15:54:31 +01:00
config.m4 Add AS_HELP_STRING to *nix build configure options 2019-03-07 20:36:59 +01:00
config.w32 Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
CREDITS
curl_file.c Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
interface.c curl_exec: remove bad check for CURLE_PARTIAL_FILE 2019-03-11 09:56:25 +01:00
multi.c Remove local variables 2019-02-03 21:03:00 +01:00
php_curl.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
share.c Remove local variables 2019-02-03 21:03:00 +01:00
sync-constants.php Make PHP development tools files and scripts executable 2018-08-29 20:58:17 +02:00