Skip to content

Commit e1701a0

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 b06c95b commit e1701a0

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
@@ -488,6 +488,7 @@ PHP 8.4 UPGRADE NOTES
488488

489489
- Curl:
490490
. The Curl extension now requires at least libcurl 7.61.0.
491+
. Several CURLE_* constants added, supporting error codes upto libcurl 8.6.0.
491492

492493
- Intl:
493494
. The class constants are typed now.
@@ -517,6 +518,49 @@ PHP 8.4 UPGRADE NOTES
517518

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

521565
- Intl:
522566
. The IntlDateFormatter class exposes now the new PATTERN constant

0 commit comments

Comments
 (0)