Skip to content

Conversation

TimWolla
Copy link
Member

We can try parsing before allocating the uri_internal_t struct.


Extracted from #19624.

Copy link
Member

@kocsismate kocsismate left a comment

Choose a reason for hiding this comment

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

LGTM apart from the nit

We can try parsing before allocating the `uri_internal_t` struct.
@TimWolla TimWolla force-pushed the uri-parse-memory-management branch from 630ee14 to 2f4e857 Compare October 12, 2025 19:39
@TimWolla TimWolla requested a review from a team October 12, 2025 19:43
@TimWolla
Copy link
Member Author

TimWolla commented Oct 12, 2025

For RMs: Would like to merge this in 8.5 to reduce avoidable differences between 8.5 and master while still in RC. It's not a bugfix, but a small cleanup that doesn't affect behavior. Is that good with you? Branch is already based on 8.5, so would just need a target branch change without NEWS.

Copy link
Member

@edorian edorian left a comment

Choose a reason for hiding this comment

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

RM approval 👍

@TimWolla TimWolla changed the base branch from master to PHP-8.5 October 14, 2025 06:36
@TimWolla TimWolla merged commit 84c7c03 into php:PHP-8.5 Oct 14, 2025
10 checks passed
TimWolla added a commit that referenced this pull request Oct 14, 2025
* PHP-8.5:
  uri: Simplify memory-management in `php_uri_parse()` (#19928)
@TimWolla TimWolla deleted the uri-parse-memory-management branch October 14, 2025 06:37
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.

5 participants