Skip to content

[Translation] remove deprecated libxml_disable_entity_loader function #60022

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

Closed

Conversation

Oviglo
Copy link
Contributor

@Oviglo Oviglo commented Mar 23, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? yes
License MIT

Hello, this function is deprecated since PHP 8.0.0: https://www.php.net/manual/en/function.libxml-disable-entity-loader.php
Capture d'écran 2025-03-23 112159

At the moment, I just comment the unused function shouldEnableEntityLoader but before finalize this PR, I need your comment about this. There are no replacement for libxml_disable_entity_loader PHP function. Have you any idea to replace it or we don't need this for PHP 8.2 ?

Thanks.

I see another PR for this in Sf4: https://github.com/symfony/symfony/pull/37790/files

TODO

  • Remove comments
  • Update UPGRADE-*.md and src/**/CHANGELOG.md files

@Oviglo Oviglo requested a review from welcoMattic as a code owner March 23, 2025 10:37
@carsonbot carsonbot added this to the 7.3 milestone Mar 23, 2025
@carsonbot carsonbot changed the title [translator]remove deprecated libxml_disable_entity_loader function [Translation] remove deprecated libxml_disable_entity_loader function Mar 23, 2025
@Oviglo Oviglo marked this pull request as draft March 23, 2025 10:43
@nicolas-grekas
Copy link
Member

I don't think we can do this.
See #39068 and #38564 also.

@Oviglo
Copy link
Contributor Author

Oviglo commented Mar 24, 2025

Ok, maybe it's better not to change it until the function is removed. But it generate a lot of deprecation warnings.

@nicolas-grekas
Copy link
Member

I guess you have libxml < 2.9? You should upgrade I suppose. Let me close here.

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