Skip to content

Commit 43c3afe

Browse files
kocsismateTimWolla
andcommitted
Fix Uri\WhatWg\Url::withPort() when an invalid value is passed
Cherry-picked from lexbor/lexbor@4ccbc54 Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
1 parent 516ef5d commit 43c3afe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ PHP NEWS
55
- Opcache
66
. Fixed segfault in function JIT due to NAN to bool warning. (Girgias)
77

8+
- URI:
9+
. Fixed Uri\WhatWg\Url::withPort() when an invalid value is passed. (timwolla)
10+
811
25 Sep 2025, PHP 8.5.0RC1
912

1013
- Core:

ext/lexbor/lexbor/url/url.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ lxb_url_parse_basic_h(lxb_url_parser_t *parser, lxb_url_t *url,
19061906
{
19071907
if (begin == p) {
19081908
if (override_state != LXB_URL_STATE__UNDEF) {
1909-
lxb_url_parse_return(orig_data, buf, LXB_STATUS_OK);
1909+
lxb_url_parse_return(orig_data, buf, LXB_STATUS_ERROR);
19101910
}
19111911

19121912
state = LXB_URL_STATE_PATH_START_STATE;

0 commit comments

Comments
 (0)