Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1b8cda1

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 ef8dcbd commit 1b8cda1

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

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

‎UPGRADING‎

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

484484
- Curl:
485485
. The Curl extension now requires at least libcurl 7.61.0.
486+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
486487

487488
- Intl:
488489
. The class constants are typed now.
@@ -512,6 +513,49 @@ PHP 8.4 UPGRADE NOTES
512513

513514
- Core:
514515
. PHP_OUTPUT_HANDLER_PROCESSED.
516+
- Curl:
517+
. CURLE_INTERFACE_FAILED
518+
. CURLE_SSL_ENGINE_INITFAILED
519+
. CURLE_SEND_FAIL_REWIND
520+
. CURLE_LOGIN_DENIED
521+
. CURLE_TFTP_UNKNOWNID
522+
. CURLE_TFTP_PERM
523+
. CURLE_TFTP_NOTFOUND
524+
. CURLE_TFTP_NOSUCHUSER
525+
. CURLE_TFTP_ILLEGAL
526+
. CURLE_SSL_SHUTDOWN_FAILED
527+
. CURLE_REMOTE_FILE_NOT_FOUND
528+
. CURLE_UPLOAD_FAILED
529+
. CURLE_USE_SSL_FAILED
530+
. CURLE_REMOTE_FILE_EXISTS
531+
. CURLE_REMOTE_DISK_FULL
532+
. CURLE_REMOTE_ACCESS_DENIED
533+
. CURLE_RANGE_ERROR
534+
. CURLE_QUOTE_ERROR
535+
. CURLE_FTP_COULDNT_SET_TYPE
536+
. CURLE_PEER_FAILED_VERIFICATION
537+
. CURLE_SSL_ISSUER_ERROR
538+
. CURLE_SSL_CRL_BADFILE
539+
. CURLE_RTSP_SESSION_ERROR
540+
. CURLE_RTSP_CSEQ_ERROR
541+
. CURLE_FTP_PRET_FAILED
542+
. CURLE_FTP_BAD_FILE_LIST
543+
. CURLE_CHUNK_FAILED
544+
. CURLE_UNKNOWN_OPTION
545+
. CURLE_NOT_BUILT_IN
546+
. CURLE_FTP_ACCEPT_TIMEOUT
547+
. CURLE_FTP_ACCEPT_FAILED
548+
. CURLE_HTTP2
549+
. CURLE_SSL_INVALIDCERTSTATUS
550+
. CURLE_HTTP2_STREAM
551+
. CURLE_RECURSIVE_API_CALL
552+
. CURLE_AUTH_ERROR
553+
. CURLE_HTTP3
554+
. CURLE_QUIC_CONNECT_ERROR
555+
. CURLE_SSL_CLIENTCERT
556+
. CURLE_SETOPT_OPTION_SYNTAX
557+
. CURLE_UNRECOVERABLE_POLL
558+
. CURLE_TOO_LARGE
515559

516560
- Intl:
517561
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /