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

Implement request #68325: parse huge option for xml_parser_create #12256

Merged
merged 2 commits into from Oct 22, 2023

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Sep 20, 2023

https://bugs.php.net/bug.php?id=68325
RFC: https://wiki.php.net/rfc/xml_option_parse_huge

This issue is work-aroundable with xml_parse by using chunked parsing. However, that's cumbersome when it's already in memory. Also, that doesn't work for xml_parse_into_struct as it doesn't really support chunked parsing.

Reminder for self: as a follow up, convert int option fields to booleans.

I'll probably need to send an email to internals for this, I'll do that sometime soon.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Looks sensible to me, not sure if an email is necessary, but it can't possibly hurt.

@nielsdos
Copy link
Member Author

RFC was accepted. Rebased + added UPGRADING.
I'll merge tomorrow after reading through this myself again.

@nielsdos nielsdos merged commit 98b08c5 into php:master Oct 22, 2023
7 checks passed
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.

None yet

3 participants