Skip to content

Commit 45a819d

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: lexbor: Cherry pick "URL: the cloning function does not copy the type for IPv4 and IPv6."
2 parents a1ed754 + 8e6d375 commit 45a819d

File tree

1 file changed

+3
-3
lines changed
  • ext/lexbor/lexbor/url

1 file changed

+3
-3
lines changed

ext/lexbor/lexbor/url/url.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023-2024 Alexander Borisov
2+
* Copyright (C) 2023-2025 Alexander Borisov
33
*
44
* Author: Alexander Borisov <[email protected]>
55
*/
@@ -1106,9 +1106,9 @@ lxb_url_host_copy(const lxb_url_host_t *src, lxb_url_host_t *dst,
11061106
}
11071107
}
11081108

1109-
if (src->type <= LXB_URL_HOST_TYPE_OPAQUE) {
1110-
dst->type = src->type;
1109+
dst->type = src->type;
11111110

1111+
if (src->type <= LXB_URL_HOST_TYPE_OPAQUE) {
11121112
if (src->type == LXB_URL_HOST_TYPE__UNDEF) {
11131113
return LXB_STATUS_OK;
11141114
}

0 commit comments

Comments
 (0)