Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants