Skip to content

uri: Do not create new UrlValidationErrorType objects #19009

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

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Jul 2, 2025

zend_enum_new() is not intended to be used “at runtime”, since it will create a new object, breaking the singleton property. Instead zend_enum_get_case_cstr() must be used.

@TimWolla TimWolla requested a review from nielsdos July 2, 2025 11:10
@TimWolla TimWolla requested a review from kocsismate as a code owner July 2, 2025 11:10
`zend_enum_new()` is not intended to be used “at runtime”, since it will create
a new object, breaking the singleton property. Instead
`zend_enum_get_case_cstr()` must be used.
@TimWolla TimWolla force-pushed the uri-whatwg-validation-error-type-singleton branch from 413d747 to 78ef6cb Compare July 2, 2025 11:12
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.

Thank you very much!

@TimWolla TimWolla merged commit ec8b016 into php:master Jul 2, 2025
9 checks passed
@TimWolla TimWolla deleted the uri-whatwg-validation-error-type-singleton branch July 2, 2025 12:03
@nielsdos
Copy link
Member

nielsdos commented Jul 2, 2025

Nice one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants