-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Fix deprecated libxml_disable_entity_loader #37763
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
| $valid = @$dom->schemaValidateSource($source); | ||
| libxml_disable_entity_loader($disableEntities); | ||
| } else { | ||
| $valid = @$dom->schemaValidateSource($source); |
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.
I'm not sure about this change: in previous code, the entity_loader were enabled, but the flag LIBXML_NOENT is not supported by schemaValidateSource.
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.
|
This should be fixed on 3.4. |
|
good catch @derrabus . Rebased. |
|
Thank you @jderusse. |
Fix deprecation
Function libxml_disable_entity_loader() is deprecatedtriggered by php/php-src#5867 in PHP8