[php-src] master: Merge branch 'PHP-8.6'

From: Date: Tue, 22 Sep 2026 15:13:30 +0000
Subject: [php-src] master: Merge branch 'PHP-8.6'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141437@lists.php.net to get a copy of this message
Author: Tim Düsterhus (TimWolla) Date: 2026-09-22T17:13:20+02:00 Commit: https://github.com/php/php-src/commit/a484c4ee59340c23a4755176c25292e154fcbab5 Raw diff: https://github.com/php/php-src/commit/a484c4ee59340c23a4755176c25292e154fcbab5.diff Merge branch 'PHP-8.6' * PHP-8.6: uri: Fix casing of UriHostType and UrlHostType enum cases (#23851) Changed paths: M ext/uri/php_uri.stub.php M ext/uri/php_uri_arginfo.h M ext/uri/php_uri_decl.h M ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt M ext/uri/tests/rfc3986/getters/host_type_success_ipv4.phpt M ext/uri/tests/rfc3986/getters/host_type_success_ipv6.phpt M ext/uri/tests/whatwg/getters/host_type_success_ipv4.phpt M ext/uri/tests/whatwg/getters/host_type_success_ipv6.phpt M ext/uri/uri_parser_rfc3986.c M ext/uri/uri_parser_whatwg.c Diff: diff --git a/ext/uri/php_uri.stub.php b/ext/uri/php_uri.stub.php index feca1871cea4..856a960a732a 100644 --- a/ext/uri/php_uri.stub.php +++ b/ext/uri/php_uri.stub.php @@ -39,9 +39,9 @@ enum UriType enum UriHostType { - case IPv4; - case IPv6; - case IPvFuture; + case IpV4; + case IpV6; + case IpVFuture; case RegisteredName; } @@ -204,8 +204,8 @@ public function __construct(string $context, \Uri\WhatWg\UrlValidationErrorType enum UrlHostType { - case IPv4; - case IPv6; + case IpV4; + case IpV6; case Domain; case Opaque; case Empty; diff --git a/ext/uri/php_uri_arginfo.h b/ext/uri/php_uri_arginfo.h index 8139d4fbf7be..43535287d785 100644 --- a/ext/uri/php_uri_arginfo.h +++ b/ext/uri/php_uri_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit php_uri.stub.php instead. - * Stub hash: 0dc5793b7dffdb81e477b6f590faf7d0360f3ea9 + * Stub hash: d96bdceccf7867b022c923bcfaf9f7a1142f0d0b * Has decl header: yes */ #include "zend_attributes.h" @@ -498,11 +498,11 @@ static zend_class_entry *register_class_Uri_Rfc3986_UriHostType(void) { zend_class_entry *class_entry = zend_register_internal_enum("Uri\\Rfc3986\\UriHostType", IS_UNDEF, NULL); - zend_enum_add_case_cstr(class_entry, "IPv4", NULL); + zend_enum_add_case_cstr(class_entry, "IpV4", NULL); - zend_enum_add_case_cstr(class_entry, "IPv6", NULL); + zend_enum_add_case_cstr(class_entry, "IpV6", NULL); - zend_enum_add_case_cstr(class_entry, "IPvFuture", NULL); + zend_enum_add_case_cstr(class_entry, "IpVFuture", NULL); zend_enum_add_case_cstr(class_entry, "RegisteredName", NULL); @@ -677,9 +677,9 @@ static zend_class_entry *register_class_Uri_WhatWg_UrlHostType(void) { zend_class_entry *class_entry = zend_register_internal_enum("Uri\\WhatWg\\UrlHostType", IS_UNDEF, NULL); - zend_enum_add_case_cstr(class_entry, "IPv4", NULL); + zend_enum_add_case_cstr(class_entry, "IpV4", NULL); - zend_enum_add_case_cstr(class_entry, "IPv6", NULL); + zend_enum_add_case_cstr(class_entry, "IpV6", NULL); zend_enum_add_case_cstr(class_entry, "Domain", NULL); diff --git a/ext/uri/php_uri_decl.h b/ext/uri/php_uri_decl.h index 04d12097833d..9423aff69fe7 100644 --- a/ext/uri/php_uri_decl.h +++ b/ext/uri/php_uri_decl.h @@ -1,8 +1,8 @@ /* This is a generated file, edit php_uri.stub.php instead. - * Stub hash: 0dc5793b7dffdb81e477b6f590faf7d0360f3ea9 */ + * Stub hash: d96bdceccf7867b022c923bcfaf9f7a1142f0d0b */ -#ifndef ZEND_PHP_URI_DECL_0dc5793b7dffdb81e477b6f590faf7d0360f3ea9_H -#define ZEND_PHP_URI_DECL_0dc5793b7dffdb81e477b6f590faf7d0360f3ea9_H +#ifndef ZEND_PHP_URI_DECL_d96bdceccf7867b022c923bcfaf9f7a1142f0d0b_H +#define ZEND_PHP_URI_DECL_d96bdceccf7867b022c923bcfaf9f7a1142f0d0b_H typedef enum zend_enum_Uri_UriComparisonMode { ZEND_ENUM_Uri_UriComparisonMode_IncludeFragment = 1, @@ -17,9 +17,9 @@ typedef enum zend_enum_Uri_Rfc3986_UriType { } zend_enum_Uri_Rfc3986_UriType; typedef enum zend_enum_Uri_Rfc3986_UriHostType { - ZEND_ENUM_Uri_Rfc3986_UriHostType_IPv4 = 1, - ZEND_ENUM_Uri_Rfc3986_UriHostType_IPv6 = 2, - ZEND_ENUM_Uri_Rfc3986_UriHostType_IPvFuture = 3, + ZEND_ENUM_Uri_Rfc3986_UriHostType_IpV4 = 1, + ZEND_ENUM_Uri_Rfc3986_UriHostType_IpV6 = 2, + ZEND_ENUM_Uri_Rfc3986_UriHostType_IpVFuture = 3, ZEND_ENUM_Uri_Rfc3986_UriHostType_RegisteredName = 4, } zend_enum_Uri_Rfc3986_UriHostType; @@ -56,8 +56,8 @@ typedef enum zend_enum_Uri_WhatWg_UrlValidationErrorType { } zend_enum_Uri_WhatWg_UrlValidationErrorType; typedef enum zend_enum_Uri_WhatWg_UrlHostType { - ZEND_ENUM_Uri_WhatWg_UrlHostType_IPv4 = 1, - ZEND_ENUM_Uri_WhatWg_UrlHostType_IPv6 = 2, + ZEND_ENUM_Uri_WhatWg_UrlHostType_IpV4 = 1, + ZEND_ENUM_Uri_WhatWg_UrlHostType_IpV6 = 2, ZEND_ENUM_Uri_WhatWg_UrlHostType_Domain = 3, ZEND_ENUM_Uri_WhatWg_UrlHostType_Opaque = 4, ZEND_ENUM_Uri_WhatWg_UrlHostType_Empty = 5, @@ -76,4 +76,4 @@ typedef enum zend_enum_Uri_WhatWg_UrlPercentEncodingMode { ZEND_ENUM_Uri_WhatWg_UrlPercentEncodingMode_Fragment = 10, } zend_enum_Uri_WhatWg_UrlPercentEncodingMode; -#endif /* ZEND_PHP_URI_DECL_0dc5793b7dffdb81e477b6f590faf7d0360f3ea9_H */ +#endif /* ZEND_PHP_URI_DECL_d96bdceccf7867b022c923bcfaf9f7a1142f0d0b_H */ diff --git a/ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt b/ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt index c2edc849086c..b06f2b28fd86 100644 --- a/ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt +++ b/ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt @@ -9,4 +9,4 @@ var_dump($uri->getHostType()); ?> --EXPECT-- -enum(Uri\Rfc3986\UriHostType::IPvFuture) +enum(Uri\Rfc3986\UriHostType::IpVFuture) diff --git a/ext/uri/tests/rfc3986/getters/host_type_success_ipv4.phpt b/ext/uri/tests/rfc3986/getters/host_type_success_ipv4.phpt index 1c0c4448b953..639e5981f6fd 100644 --- a/ext/uri/tests/rfc3986/getters/host_type_success_ipv4.phpt +++ b/ext/uri/tests/rfc3986/getters/host_type_success_ipv4.phpt @@ -9,4 +9,4 @@ var_dump($uri->getHostType()); ?> --EXPECT-- -enum(Uri\Rfc3986\UriHostType::IPv4) +enum(Uri\Rfc3986\UriHostType::IpV4) diff --git a/ext/uri/tests/rfc3986/getters/host_type_success_ipv6.phpt b/ext/uri/tests/rfc3986/getters/host_type_success_ipv6.phpt index 5f3d826b412a..89dc2b8e72be 100644 --- a/ext/uri/tests/rfc3986/getters/host_type_success_ipv6.phpt +++ b/ext/uri/tests/rfc3986/getters/host_type_success_ipv6.phpt @@ -9,4 +9,4 @@ var_dump($uri->getHostType()); ?> --EXPECT-- -enum(Uri\Rfc3986\UriHostType::IPv6) +enum(Uri\Rfc3986\UriHostType::IpV6) diff --git a/ext/uri/tests/whatwg/getters/host_type_success_ipv4.phpt b/ext/uri/tests/whatwg/getters/host_type_success_ipv4.phpt index f2f63caabb5e..207b63a054d7 100644 --- a/ext/uri/tests/whatwg/getters/host_type_success_ipv4.phpt +++ b/ext/uri/tests/whatwg/getters/host_type_success_ipv4.phpt @@ -9,4 +9,4 @@ var_dump($url->getHostType()); ?> --EXPECT-- -enum(Uri\WhatWg\UrlHostType::IPv4) +enum(Uri\WhatWg\UrlHostType::IpV4) diff --git a/ext/uri/tests/whatwg/getters/host_type_success_ipv6.phpt b/ext/uri/tests/whatwg/getters/host_type_success_ipv6.phpt index ce5bb00b93d5..200c968cde5c 100644 --- a/ext/uri/tests/whatwg/getters/host_type_success_ipv6.phpt +++ b/ext/uri/tests/whatwg/getters/host_type_success_ipv6.phpt @@ -9,4 +9,4 @@ var_dump($url->getHostType()); ?> --EXPECT-- -enum(Uri\WhatWg\UrlHostType::IPv6) +enum(Uri\WhatWg\UrlHostType::IpV6) diff --git a/ext/uri/uri_parser_rfc3986.c b/ext/uri/uri_parser_rfc3986.c index 20bac3b14260..48fcb236e8bf 100644 --- a/ext/uri/uri_parser_rfc3986.c +++ b/ext/uri/uri_parser_rfc3986.c @@ -293,11 +293,11 @@ ZEND_ATTRIBUTE_NONNULL void php_uri_parser_rfc3986_host_type_read(php_uri_parser zend_object *value; if (uriparser_uri->hostData.ip4 != NULL) { - value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IPv4); + value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IpV4); } else if (uriparser_uri->hostData.ip6 != NULL) { - value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IPv6); + value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IpV6); } else if (has_text_range(&uriparser_uri->hostData.ipFuture)) { - value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IPvFuture); + value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_IpVFuture); } else { value = zend_enum_get_case_by_id(php_uri_ce_rfc3986_uri_host_type, ZEND_ENUM_Uri_Rfc3986_UriHostType_RegisteredName); } diff --git a/ext/uri/uri_parser_whatwg.c b/ext/uri/uri_parser_whatwg.c index 1a258c6c940c..3e1e587da75c 100644 --- a/ext/uri/uri_parser_whatwg.c +++ b/ext/uri/uri_parser_whatwg.c @@ -392,10 +392,10 @@ ZEND_ATTRIBUTE_NONNULL void php_uri_parser_whatwg_host_type_read(const lxb_url_t { switch (lexbor_uri->host.type) { case LXB_URL_HOST_TYPE_IPV4: - ZVAL_OBJ_COPY(retval, zend_enum_get_case_cstr(php_uri_ce_whatwg_url_host_type, "IPv4")); + ZVAL_OBJ_COPY(retval, zend_enum_get_case_cstr(php_uri_ce_whatwg_url_host_type, "IpV4")); return; case LXB_URL_HOST_TYPE_IPV6: - ZVAL_OBJ_COPY(retval, zend_enum_get_case_cstr(php_uri_ce_whatwg_url_host_type, "IPv6")); + ZVAL_OBJ_COPY(retval, zend_enum_get_case_cstr(php_uri_ce_whatwg_url_host_type, "IpV6")); return; case LXB_URL_HOST_TYPE_DOMAIN: ZVAL_OBJ_COPY(retval, zend_enum_get_case_cstr(php_uri_ce_whatwg_url_host_type, "Domain"));

« previous php.cvs (#141437) next »