libxml_set_external_entity_loaderChanges the default external entity loader Description
bool libxml_set_external_entity_loader(callablenull
$resolver_function )
Changes the default external entity loader.
This can be used to suppress the expansion of arbitrary external entities to avoid XXE attacks,
even when Parameters
Return Values
Returns Examples
Example #1 libxml_set_external_entity_loader example
The above example will output: string(10) "-//FOO/BAR" string(25) "http://example.com/foobar" array(4) { ["directory"] => NULL ["intSubName"] => NULL ["extSubURI"] => NULL ["extSubSystem"] => NULL } bool(true) See Also
|