Skip to content

Commit c92dde2

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: php#12000, php#13259, php#13209, php#13282
1 parent ffa3f4f commit c92dde2

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
@@ -20,6 +20,8 @@ PHP NEWS
2020
. Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
2121
. Bumped required libcurl version to 7.61.0. (Ayesh)
2222
. Added feature_list key to the curl_version() return value (Ayesh)
23+
. Added several CURLE_* constants, matching all error codes until libcurl
24+
8.6.0 (Ayesh)
2325

2426
- Date:
2527
. Added DateTime[Immutable]::createFromTimestamp. (Marc Bennewitz)

UPGRADING

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

470470
- Curl:
471471
. The Curl extension now requires at least libcurl 7.61.0.
472+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
472473

473474
- Intl:
474475
. The class constants are typed now.
@@ -498,6 +499,49 @@ PHP 8.4 UPGRADE NOTES
498499

499500
- Core:
500501
. PHP_OUTPUT_HANDLER_PROCESSED.
502+
- Curl:
503+
. CURLE_INTERFACE_FAILED
504+
. CURLE_SSL_ENGINE_INITFAILED
505+
. CURLE_SEND_FAIL_REWIND
506+
. CURLE_LOGIN_DENIED
507+
. CURLE_TFTP_UNKNOWNID
508+
. CURLE_TFTP_PERM
509+
. CURLE_TFTP_NOTFOUND
510+
. CURLE_TFTP_NOSUCHUSER
511+
. CURLE_TFTP_ILLEGAL
512+
. CURLE_SSL_SHUTDOWN_FAILED
513+
. CURLE_REMOTE_FILE_NOT_FOUND
514+
. CURLE_UPLOAD_FAILED
515+
. CURLE_USE_SSL_FAILED
516+
. CURLE_REMOTE_FILE_EXISTS
517+
. CURLE_REMOTE_DISK_FULL
518+
. CURLE_REMOTE_ACCESS_DENIED
519+
. CURLE_RANGE_ERROR
520+
. CURLE_QUOTE_ERROR
521+
. CURLE_FTP_COULDNT_SET_TYPE
522+
. CURLE_PEER_FAILED_VERIFICATION
523+
. CURLE_SSL_ISSUER_ERROR
524+
. CURLE_SSL_CRL_BADFILE
525+
. CURLE_RTSP_SESSION_ERROR
526+
. CURLE_RTSP_CSEQ_ERROR
527+
. CURLE_FTP_PRET_FAILED
528+
. CURLE_FTP_BAD_FILE_LIST
529+
. CURLE_CHUNK_FAILED
530+
. CURLE_UNKNOWN_OPTION
531+
. CURLE_NOT_BUILT_IN
532+
. CURLE_FTP_ACCEPT_TIMEOUT
533+
. CURLE_FTP_ACCEPT_FAILED
534+
. CURLE_HTTP2
535+
. CURLE_SSL_INVALIDCERTSTATUS
536+
. CURLE_HTTP2_STREAM
537+
. CURLE_RECURSIVE_API_CALL
538+
. CURLE_AUTH_ERROR
539+
. CURLE_HTTP3
540+
. CURLE_QUIC_CONNECT_ERROR
541+
. CURLE_SSL_CLIENTCERT
542+
. CURLE_SETOPT_OPTION_SYNTAX
543+
. CURLE_UNRECOVERABLE_POLL
544+
. CURLE_TOO_LARGE
501545

502546
- Intl:
503547
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
 (0)