Skip to content

Commit d32d3db

Browse files
committed
ext/curl: Add all missing CURLE constants up to Curl 8.6
ext/curl now requires libcurl 7.61.0, which means a lot of CURL* constants can be re-organized. This commit re-arranges all of the CURLE_* constants to a single part of the `curl.stub.php` file, and rearranges them to match the order of the error constants in the libcurl documentation[^1]. Constants that are deprecated[^2] are moved shifted to the end of the `CURLE_*` constants list. [^1]: https://curl.se/libcurl/c/libcurl-errors.html [^2]: https://curl.se/libcurl/c/symbols-in-versions.html Related: #12000, #13259, #13209, #13282
1 parent e76f9e2 commit d32d3db

File tree

5 files changed

+1933
-1409
lines changed

5 files changed

+1933
-1409
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ PHP NEWS
1717
- Curl:
1818
. Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
1919
. Bumped required libcurl version to 7.61.0. (Ayesh)
20+
. Added several CURLE_* constants, matching all error codes until libcurl
21+
8.6.0 (Ayesh)
2022

2123
- Date:
2224
. Added DateTime[Immutable]::createFromTimestamp. (Marc Bennewitz)

UPGRADING

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ PHP 8.4 UPGRADE NOTES
406406

407407
- Curl:
408408
. The Curl extension now requires at least libcurl 7.61.0.
409+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
409410

410411
- Intl:
411412
. The class constants are typed now.
@@ -432,6 +433,49 @@ PHP 8.4 UPGRADE NOTES
432433

433434
- Core:
434435
. PHP_OUTPUT_HANDLER_PROCESSED.
436+
- Curl:
437+
. CURLE_INTERFACE_FAILED
438+
. CURLE_SSL_ENGINE_INITFAILED
439+
. CURLE_SEND_FAIL_REWIND
440+
. CURLE_LOGIN_DENIED
441+
. CURLE_TFTP_UNKNOWNID
442+
. CURLE_TFTP_PERM
443+
. CURLE_TFTP_NOTFOUND
444+
. CURLE_TFTP_NOSUCHUSER
445+
. CURLE_TFTP_ILLEGAL
446+
. CURLE_SSL_SHUTDOWN_FAILED
447+
. CURLE_REMOTE_FILE_NOT_FOUND
448+
. CURLE_UPLOAD_FAILED
449+
. CURLE_USE_SSL_FAILED
450+
. CURLE_REMOTE_FILE_EXISTS
451+
. CURLE_REMOTE_DISK_FULL
452+
. CURLE_REMOTE_ACCESS_DENIED
453+
. CURLE_RANGE_ERROR
454+
. CURLE_QUOTE_ERROR
455+
. CURLE_FTP_COULDNT_SET_TYPE
456+
. CURLE_PEER_FAILED_VERIFICATION
457+
. CURLE_SSL_ISSUER_ERROR
458+
. CURLE_SSL_CRL_BADFILE
459+
. CURLE_RTSP_SESSION_ERROR
460+
. CURLE_RTSP_CSEQ_ERROR
461+
. CURLE_FTP_PRET_FAILED
462+
. CURLE_FTP_BAD_FILE_LIST
463+
. CURLE_CHUNK_FAILED
464+
. CURLE_UNKNOWN_OPTION
465+
. CURLE_NOT_BUILT_IN
466+
. CURLE_FTP_ACCEPT_TIMEOUT
467+
. CURLE_FTP_ACCEPT_FAILED
468+
. CURLE_HTTP2
469+
. CURLE_SSL_INVALIDCERTSTATUS
470+
. CURLE_HTTP2_STREAM
471+
. CURLE_RECURSIVE_API_CALL
472+
. CURLE_AUTH_ERROR
473+
. CURLE_HTTP3
474+
. CURLE_QUIC_CONNECT_ERROR
475+
. CURLE_SSL_CLIENTCERT
476+
. CURLE_SETOPT_OPTION_SYNTAX
477+
. CURLE_UNRECOVERABLE_POLL
478+
. CURLE_TOO_LARGE
435479

436480
- Intl:
437481
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
 (0)