Skip to content

ext/xml: Refactor extension to use FCC instead of zvals for handlers #12340

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 26 commits into from
Oct 20, 2023

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 1, 2023

To get proper errors and sensible behaviour, as the current behaviour is somewhat insane and part of it should be axed ASAP

Skipping CI due to known issues and failures regarding the GC and exceptions being swallowed

@Girgias Girgias requested a review from nielsdos October 1, 2023 18:26
@Girgias Girgias changed the title [skip ci] [W.I.P.] ext/xml: Refactor extension to use FCC instead of zvals for handlers [W.I.P.] ext/xml: Refactor extension to use FCC instead of zvals for handlers Oct 1, 2023
@Girgias Girgias force-pushed the ext-xml-zval-to-fcc branch from 88ad6ff to 01a8927 Compare October 1, 2023 18:34
@Girgias
Copy link
Member Author

Girgias commented Oct 1, 2023

Related to: php/doc-en#1391

@nielsdos
Copy link
Member

nielsdos commented Oct 1, 2023

Pushed fixes, ext/xml tests now pass, but I haven't given this a full review yet (and there's some TODOs, so I'll wait maybe for those)

EDIT: this test fails Zend/tests/arginfo_zpp_mismatch.phpt: xml.c:1250: zif_xml_set_character_data_handler: Assertion parser' failed`, so probably a check missing or an assertion that should be a check instead. All ext/xml tests succeed though

@Girgias Girgias force-pushed the ext-xml-zval-to-fcc branch from 1afecb6 to 3c66a18 Compare October 3, 2023 13:51
@Girgias Girgias marked this pull request as ready for review October 3, 2023 13:51
@Girgias Girgias changed the title [W.I.P.] ext/xml: Refactor extension to use FCC instead of zvals for handlers ext/xml: Refactor extension to use FCC instead of zvals for handlers Oct 3, 2023
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.

Looks mostly good, just minor comments.
And a potential BC problem, it's a problem because it's silent imo unlike the other BC change.

@Girgias Girgias force-pushed the ext-xml-zval-to-fcc branch from f7a6fd4 to f9ccae9 Compare October 9, 2023 14:05
@Girgias Girgias force-pushed the ext-xml-zval-to-fcc branch from f9ccae9 to edc99d5 Compare October 10, 2023 13:31
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.

Looks good apart from two silly nits.
Thanks for working on this.

k00ni added a commit to semsol/arc2 that referenced this pull request Oct 20, 2023
Use proper callables instead.

Related to: php/php-src#12340

Co-authored-by: Konrad Abicht <hi@inspirito.de>
@Girgias Girgias merged commit 0e5d654 into php:master Oct 20, 2023
@Girgias Girgias deleted the ext-xml-zval-to-fcc branch October 20, 2023 12:14
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