summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UPGRADING3
-rw-r--r--ext/curl/interface.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index f30c0fb6bf..a73b350388 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -79,6 +79,9 @@ PHP 8.1 UPGRADE NOTES
prefix similar to hexadecimal ("0x"/"0X) and binary ("0b"/"0B") integer literals
RFC: https://wiki.php.net/rfc/explicit_octal_notation
+- Curl:
+ . Added CURLOPT_DOH_URL option.
+
- hash:
. The following functions have changed signatures:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 39f7b7e5d0..82f512d29d 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -1141,6 +1141,10 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLOPT_TLS13_CIPHERS);
#endif
+#if LIBCURL_VERSION_NUM >= 0x073E00 /* Available since 7.62.0 */
+ REGISTER_CURL_CONSTANT(CURLOPT_DOH_URL);
+#endif
+
#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */
REGISTER_CURL_CONSTANT(CURLOPT_HTTP09_ALLOWED);
#endif
@@ -2450,6 +2454,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
#if LIBCURL_VERSION_NUM >= 0x072800 /* Available since 7.40.0 */
case CURLOPT_UNIX_SOCKET_PATH:
#endif
+#if LIBCURL_VERSION_NUM >= 0x073E00 /* Available since 7.62.0 */
+ case CURLOPT_DOH_URL:
+#endif
case CURLOPT_KRBLEVEL:
{
if (Z_ISNULL_P(zvalue)) {