Skip to content
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

ext/standard/html.c: clean up a bit #16311

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

DanielEScherzer
Copy link
Contributor

  • Instead of manually wrapping assert() statements with a ZEND_DEBUG condition, use ZEND_ASSERT(), so that for non-debug builds the compiler is told to assume that the assertion is correct.

  • Update some return types for methods that return zend_result.

- Instead of manually wrapping `assert()` statements with a `ZEND_DEBUG`
condition, use `ZEND_ASSERT()`, so that for non-debug builds the compiler is
told to assume that the assertion is correct.

- Update some return types for methods that return `zend_result`.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

makes sense to me

@iluuu1994 iluuu1994 merged commit 018e7f5 into php:master Oct 10, 2024
10 checks passed
@iluuu1994
Copy link
Member

Thank you @DanielEScherzer!

@DanielEScherzer DanielEScherzer deleted the ext-standard-html branch October 10, 2024 23:28
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