Skip to content

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

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 7, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets /
License MIT
Doc PR /

Fix deprecation Function libxml_disable_entity_loader() is deprecated triggered by php/php-src#5867 in PHP8

$valid = @$dom->schemaValidateSource($source);
libxml_disable_entity_loader($disableEntities);
} else {
$valid = @$dom->schemaValidateSource($source);
Copy link
Member Author

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.

Copy link
Member Author

@jderusse jderusse Aug 7, 2020

Choose a reason for hiding this comment

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

@derrabus
Copy link
Member

derrabus commented Aug 8, 2020

This should be fixed on 3.4.

@jderusse jderusse changed the base branch from 4.4 to 3.4 August 9, 2020 09:14
@jderusse
Copy link
Member Author

jderusse commented Aug 9, 2020

good catch @derrabus . Rebased.

@fabpot
Copy link
Member

fabpot commented Aug 10, 2020

Thank you @jderusse.

@fabpot fabpot merged commit b45e3ed into symfony:3.4 Aug 10, 2020
This was referenced Aug 31, 2020
@jderusse jderusse deleted the php8-libxml branch October 15, 2020 10:01
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.

4 participants