Skip to content

Conversation

kocsismate
Copy link
Member

No description provided.

@nielsdos
Copy link
Member

It's probably best to commit the uriparser changes separately and base the PHP changes off on top of that.

@kocsismate
Copy link
Member Author

It's probably best to commit the uriparser changes separately and base the PHP changes off on top of that.

Yes, sure! This PR in its current form is more like intended to test the setters. I'll create a separate one once the new uriparser release is done.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still like to see #19636 (comment) changed, but I'm not seeing any bugs anymore.

Comment on lines 376 to 368
if (result != URI_SUCCESS) {
zend_throw_exception(uri_invalid_uri_exception_ce, "The specified path is malformed", 0);
return FAILURE;
}

reset_normalized_uri_after_writing(internal_uri);

return SUCCESS;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could theoretically be adjusted to a switch() for consistency with the port, host, and userinfo setters (applies to all setters).

@TimWolla
Copy link
Member

TimWolla commented Sep 5, 2025

Already requesting RM review, since I don't expect any more significant changes.

@TimWolla TimWolla requested a review from a team September 5, 2025 21:14
Copy link
Member

@DanielEScherzer DanielEScherzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RM review - looks good, approved
Also did a minor technical review, some unused variables and parameters that could be removed

}

try {
$uri3->withHost("t:s/t.com"); // t:s/t.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contrary to the use of the comment above, this comment seems kinda useless: it throws me off because now I'm staring at what the difference is between the string and the comment but I don't see it ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, you are right 😅 it's absolutely useless indeed

Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@kocsismate kocsismate merged commit 4e8058e into php:master Sep 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants