Skip to content

uri: Do not overwrite defaultMemoryManager #19042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025
Merged

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Jul 5, 2025

The defaultMemoryManager is only available via a non-public header and is not supposed to be used by users of the library [1]. It also has a very generic name, further indicating that it is not supposed to be used.

Instead pass the memory manager explicitly, which is how the library is supposed to be used.

[1] uriparser/uriparser#52 (comment)

The `defaultMemoryManager` is only available via a non-public
header and is not supposed to be used by users of the library [1].
It also has a very generic name, further indicating that it is not
supposed to be used.

Instead pass the memory manager explicitly, which is how the library is
supposed to be used.

[1] uriparser/uriparser#52 (comment)
@TimWolla TimWolla requested a review from nielsdos July 5, 2025 17:26
@TimWolla TimWolla requested a review from kocsismate as a code owner July 5, 2025 17:26
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.

I don't think you've missed anything. Good find.

@TimWolla TimWolla merged commit c1ed608 into php:master Jul 6, 2025
9 checks passed
@TimWolla TimWolla deleted the uri-mm branch July 6, 2025 18:48
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.

2 participants