Properties

$pattern

$pattern : string

String used to identify risky xml elements.

Type

string

$callback

$callback : 

Type

$libxmlDisableEntityLoaderValue

$libxmlDisableEntityLoaderValue : 

Type

Methods

__construct()

__construct(  $pattern = '<!DOCTYPE') 

Parameters

$pattern

threadSafeLibxmlDisableEntityLoaderAvailability()

threadSafeLibxmlDisableEntityLoaderAvailability() 

shutdown()

shutdown() 

__destruct()

__destruct() 

setAdditionalCallback()

setAdditionalCallback(callable  $callback) 

Parameters

callable $callback

scan()

scan(mixed  $xml) : string

Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.

Parameters

mixed $xml

Returns

string

scanFile()

scanFile(string  $filestream) : string

Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks.

Parameters

string $filestream

Returns

string

disableEntityLoaderCheck()

disableEntityLoaderCheck() 

toUtf8()

toUtf8(  $xml) 

Parameters

$xml