1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

lexbor: Cherry pick "URL: the cloning function does not copy the type for IPv4 and IPv6."

see lexbor/lexbor@dcfcd645c6

Fixes php/php-src#20501
This commit is contained in:
Tim Düsterhus
2025-11-17 19:28:51 +01:00
parent 6cac6d49ce
commit 8e6d375966
2 changed files with 7 additions and 3 deletions

4
NEWS
View File

@@ -22,6 +22,10 @@ PHP NEWS
. Fixed bug GH-20483 (ASAN stack overflow with fiber.stack_size INI
small value). (David Carlier)
- Lexbor:
. Fixed bug GH-20501 (\Uri\WhatWg\Url lose host after calling
withPath() or withQuery()). (lexborisov)
- Opcache:
. Fixed bug GH-20329 (opcache.file_cache broken with full interned string
buffer). (Arnaud)

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023-2024 Alexander Borisov
* Copyright (C) 2023-2025 Alexander Borisov
*
* Author: Alexander Borisov <borisov@lexbor.com>
*/
@@ -1106,9 +1106,9 @@ lxb_url_host_copy(const lxb_url_host_t *src, lxb_url_host_t *dst,
}
}
if (src->type <= LXB_URL_HOST_TYPE_OPAQUE) {
dst->type = src->type;
dst->type = src->type;
if (src->type <= LXB_URL_HOST_TYPE_OPAQUE) {
if (src->type == LXB_URL_HOST_TYPE__UNDEF) {
return LXB_STATUS_OK;
}