Files
kulakpos_web/vendor/thecodingmachine/safe/generated/8.1/libxml.php

20 lines
410 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Safe;
use Safe\Exceptions\LibxmlException;
/**
2026-04-18 20:32:18 +07:00
* @param callable $resolver_function
2026-03-30 14:54:57 +07:00
* @throws LibxmlException
*
*/
function libxml_set_external_entity_loader(callable $resolver_function): void
{
error_clear_last();
$safeResult = \libxml_set_external_entity_loader($resolver_function);
if ($safeResult === false) {
throw LibxmlException::createFromPhpError();
}
}