libxml_disable_entity_loader() Is Deprecated

libxml_disable_entity_loader() has been deprecated since PHP 8.0, and actually, does not execute any code. The error message was upgraded to make it more explicit.

PHP code

<?php

var_dump(libxml_disable_entity_loader(true));

?>

Before

PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated

Deprecated: Function libxml_disable_entity_loader() is deprecated
bool(false)

After

PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated since 8.0, as external entity loading is disabled by default

Deprecated: Function libxml_disable_entity_loader() is deprecated since 8.0, as external entity loading is disabled by default
bool(false)

PHP version change

This behavior changed in 8.0

Error Messages