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 ced94e0

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 2d66993 commit ced94e0

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
@@ -29,6 +29,8 @@ PHP NEWS
2929
. Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
3030
. Bumped required libcurl version to 7.61.0. (Ayesh)
3131
. Added feature_list key to the curl_version() return value (Ayesh)
32+
. Added several CURLE_* constants, matching all error codes until libcurl
33+
8.6.0 (Ayesh)
3234

3335
- Date:
3436
. Added DateTime[Immutable]::createFromTimestamp. (Marc Bennewitz)

‎UPGRADING‎

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

556556
- Curl:
557557
. The Curl extension now requires at least libcurl 7.61.0.
558+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
558559

559560
- Intl:
560561
. The class constants are typed now.
@@ -587,6 +588,49 @@ PHP 8.4 UPGRADE NOTES
587588

588589
- Core:
589590
. PHP_OUTPUT_HANDLER_PROCESSED.
591+
- Curl:
592+
. CURLE_INTERFACE_FAILED
593+
. CURLE_SSL_ENGINE_INITFAILED
594+
. CURLE_SEND_FAIL_REWIND
595+
. CURLE_LOGIN_DENIED
596+
. CURLE_TFTP_UNKNOWNID
597+
. CURLE_TFTP_PERM
598+
. CURLE_TFTP_NOTFOUND
599+
. CURLE_TFTP_NOSUCHUSER
600+
. CURLE_TFTP_ILLEGAL
601+
. CURLE_SSL_SHUTDOWN_FAILED
602+
. CURLE_REMOTE_FILE_NOT_FOUND
603+
. CURLE_UPLOAD_FAILED
604+
. CURLE_USE_SSL_FAILED
605+
. CURLE_REMOTE_FILE_EXISTS
606+
. CURLE_REMOTE_DISK_FULL
607+
. CURLE_REMOTE_ACCESS_DENIED
608+
. CURLE_RANGE_ERROR
609+
. CURLE_QUOTE_ERROR
610+
. CURLE_FTP_COULDNT_SET_TYPE
611+
. CURLE_PEER_FAILED_VERIFICATION
612+
. CURLE_SSL_ISSUER_ERROR
613+
. CURLE_SSL_CRL_BADFILE
614+
. CURLE_RTSP_SESSION_ERROR
615+
. CURLE_RTSP_CSEQ_ERROR
616+
. CURLE_FTP_PRET_FAILED
617+
. CURLE_FTP_BAD_FILE_LIST
618+
. CURLE_CHUNK_FAILED
619+
. CURLE_UNKNOWN_OPTION
620+
. CURLE_NOT_BUILT_IN
621+
. CURLE_FTP_ACCEPT_TIMEOUT
622+
. CURLE_FTP_ACCEPT_FAILED
623+
. CURLE_HTTP2
624+
. CURLE_SSL_INVALIDCERTSTATUS
625+
. CURLE_HTTP2_STREAM
626+
. CURLE_RECURSIVE_API_CALL
627+
. CURLE_AUTH_ERROR
628+
. CURLE_HTTP3
629+
. CURLE_QUIC_CONNECT_ERROR
630+
. CURLE_SSL_CLIENTCERT
631+
. CURLE_SETOPT_OPTION_SYNTAX
632+
. CURLE_UNRECOVERABLE_POLL
633+
. CURLE_TOO_LARGE
590634

591635
- Intl:
592636
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
(0)

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