Skip to content

Suppress deprecation notices when ext/dom properties are accessed by the get_debug_info handler #15530

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 2 commits into from
Aug 23, 2024

Conversation

kocsismate
Copy link
Member

relates to #15369 (comment)

@@ -471,9 +481,12 @@ static HashTable* dom_get_debug_info_helper(zend_object *object, int *is_temp) /

ZEND_ASSERT(string_key != NULL);

DOM_G(suppress_warnings) = true;
Copy link
Member

Choose a reason for hiding this comment

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

I would just set this to true outside of the loop and reset it to false after the loop, that's imo a little bit cleaner.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, makes total sense.

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 7e45e57 into php:master Aug 23, 2024
10 checks passed
@kocsismate kocsismate deleted the dom-property-debug-handler-fix branch August 23, 2024 08:39
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