-
Notifications
You must be signed in to change notification settings - Fork 8k
Backport libxml 2.12-2.13 fixes to PHP 8.1 #16381
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
Conversation
96a52f1
to
40e15c6
Compare
In master I use ZEND_DIAGNOSTIC_IGNORED_START, but that doesn't exist on 8.2 or 8.3 (8.3 has a similar macro though). So to unbreak CI I just made a variation of this directly in the php_libxml.h header. See php@683e787#commitcomment-134301083
…r change See https://gitlab.gnome.org/GNOME/libxml2/-/issues/753. The base directory for the entity is no longer set, follow the upstream behaviour.
External entity loading got its error level decreased in upstream, which means they now map to E_NOTICE. Also the error message format has changed.
And it's about to get a bit more finicky as |
dce3c10
to
263015a
Compare
Normally I would backport 3354cc6, but this doesn't apply cleanly due to observer changes.
@cmb69 @bukka @ramsey This fixes the build failures and test failures related to the libxml stuff. This is quite a heavy backport with only a few changes in the C code (some I made specifically for 8.1 because backports weren't possible), and most changes are in creating alterative phpt test files. Most of these changes have been in PHP 8.2+ since early this year or since July, without reported issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The C part seems quite small so I think it's good.
No description provided.