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 18754c0

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 5b7d458 commit 18754c0

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

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

‎UPGRADING‎

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

491491
- Curl:
492492
. The Curl extension now requires at least libcurl 7.61.0.
493+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
493494

494495
- Intl:
495496
. The class constants are typed now.
@@ -519,6 +520,49 @@ PHP 8.4 UPGRADE NOTES
519520

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

523567
- Intl:
524568
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
(0)

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