Skip to content

Commit 15d9a53

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 7ca4300 commit 15d9a53

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
@@ -24,6 +24,8 @@ PHP NEWS
2424
. Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
2525
. Bumped required libcurl version to 7.61.0. (Ayesh)
2626
. Added feature_list key to the curl_version() return value (Ayesh)
27+
. Added several CURLE_* constants, matching all error codes until libcurl
28+
8.6.0 (Ayesh)
2729

2830
- Date:
2931
. Added DateTime[Immutable]::createFromTimestamp. (Marc Bennewitz)

UPGRADING

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

508508
- Curl:
509509
. The Curl extension now requires at least libcurl 7.61.0.
510+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
510511

511512
- Intl:
512513
. The class constants are typed now.
@@ -539,6 +540,49 @@ PHP 8.4 UPGRADE NOTES
539540

540541
- Core:
541542
. PHP_OUTPUT_HANDLER_PROCESSED.
543+
- Curl:
544+
. CURLE_INTERFACE_FAILED
545+
. CURLE_SSL_ENGINE_INITFAILED
546+
. CURLE_SEND_FAIL_REWIND
547+
. CURLE_LOGIN_DENIED
548+
. CURLE_TFTP_UNKNOWNID
549+
. CURLE_TFTP_PERM
550+
. CURLE_TFTP_NOTFOUND
551+
. CURLE_TFTP_NOSUCHUSER
552+
. CURLE_TFTP_ILLEGAL
553+
. CURLE_SSL_SHUTDOWN_FAILED
554+
. CURLE_REMOTE_FILE_NOT_FOUND
555+
. CURLE_UPLOAD_FAILED
556+
. CURLE_USE_SSL_FAILED
557+
. CURLE_REMOTE_FILE_EXISTS
558+
. CURLE_REMOTE_DISK_FULL
559+
. CURLE_REMOTE_ACCESS_DENIED
560+
. CURLE_RANGE_ERROR
561+
. CURLE_QUOTE_ERROR
562+
. CURLE_FTP_COULDNT_SET_TYPE
563+
. CURLE_PEER_FAILED_VERIFICATION
564+
. CURLE_SSL_ISSUER_ERROR
565+
. CURLE_SSL_CRL_BADFILE
566+
. CURLE_RTSP_SESSION_ERROR
567+
. CURLE_RTSP_CSEQ_ERROR
568+
. CURLE_FTP_PRET_FAILED
569+
. CURLE_FTP_BAD_FILE_LIST
570+
. CURLE_CHUNK_FAILED
571+
. CURLE_UNKNOWN_OPTION
572+
. CURLE_NOT_BUILT_IN
573+
. CURLE_FTP_ACCEPT_TIMEOUT
574+
. CURLE_FTP_ACCEPT_FAILED
575+
. CURLE_HTTP2
576+
. CURLE_SSL_INVALIDCERTSTATUS
577+
. CURLE_HTTP2_STREAM
578+
. CURLE_RECURSIVE_API_CALL
579+
. CURLE_AUTH_ERROR
580+
. CURLE_HTTP3
581+
. CURLE_QUIC_CONNECT_ERROR
582+
. CURLE_SSL_CLIENTCERT
583+
. CURLE_SETOPT_OPTION_SYNTAX
584+
. CURLE_UNRECOVERABLE_POLL
585+
. CURLE_TOO_LARGE
542586

543587
- Intl:
544588
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
 (0)