php-src/ext/libxml/libxml.stub.php
Dik Takken e0fa48f69d Deprecate libxml_disable_entity_loader()
This method was used to protect code against XXE processing attacks.
Since PHP now requires libxml >= 2.9.0 external entity loading no longer
needs to be disabled to prevent these attacks. It is disabled by default.
Also, the method has an unwanted side effect that causes a lot of
confusion: Parsing XML data from resources like files is no longer possible.

Closes GH-5867.
2020-08-03 21:53:29 +02:00

19 lines
510 B
PHP

<?php
/** @generate-function-entries */
/** @param resource $context */
function libxml_set_streams_context($context): void {}
function libxml_use_internal_errors(?bool $use_errors = null): bool {}
function libxml_get_last_error(): LibXMLError|false {}
function libxml_get_errors(): array {}
function libxml_clear_errors(): void {}
/** @deprecated */
function libxml_disable_entity_loader(bool $disable = true): bool {}
function libxml_set_external_entity_loader(?callable $resolver_function): bool {}