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:
4
NEWS
4
NEWS
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user