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

Fix deprecation warning in PHP 8.0 #28

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

ausi
Copy link
Member

@ausi ausi commented Aug 30, 2020

No description provided.

@ausi ausi added the bug label Aug 30, 2020
@ausi ausi self-assigned this Aug 30, 2020
@ausi ausi force-pushed the fix/php-8-compat-deprecation branch from 5b3143c to fb246ae Compare August 30, 2020 18:13
@ausi ausi requested a review from leofeyer August 30, 2020 18:21
@ausi
Copy link
Member Author

ausi commented Aug 30, 2020

I’m not sure if this is actually the correct fix. In PHP 8 the default value for libxml_disable_entity_loader seems to be changed (but is not in beta1 or beta2) but the functionality is still there and the entity loader might have been enabled by another script or different server configuration.

Maybe we should just silence the deprecation instead?

@ausi
Copy link
Member Author

ausi commented Aug 30, 2020

@leofeyer
Copy link
Member

This is how Symfony handles it: symfony/translation@0411f10

@ausi
Copy link
Member Author

ausi commented Aug 31, 2020

OK, so as of libxml 2.9.0 entity substitution is disabled by default which makes disabling the entity loader unnecessary. The current fix in this PR should therefore be correct.

@ausi ausi changed the title Fix deprecation warning in PHP 8.0. Fix deprecation warning in PHP 8.0 Sep 2, 2020
@ausi ausi merged commit 7e62b9e into contao:master Sep 2, 2020
@ausi ausi deleted the fix/php-8-compat-deprecation branch September 2, 2020 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants