Skip to content

ext/soap: Refactor to_zval_bool() #18696

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 3 commits into from
May 29, 2025
Merged

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented May 29, 2025

  • Early return style
  • Improve logic to get rid of unnecessary comparisons and calls to stricmp()
  • Do not use convert_to_boolean API

- Early return style
- Improve logic to get rid of unnecessary comparisons and calls to stricmp()
- Do not use convert_to_boolean API
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 think the code became a bit complicated.
I think a series of stricmp are better

I blame copy paste
@Girgias Girgias merged commit c9e5715 into php:master May 29, 2025
7 of 9 checks passed
@Girgias Girgias deleted the soap-to-zval-bool-refacto branch May 29, 2025 14:29
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