class XmlScanner (View source)

Methods

__construct($pattern = '<!DOCTYPE')

No description

static 
getInstance(IReader $reader)

No description

static 
shutdown()

No description

__destruct()

No description

setAdditionalCallback(callable $callback)

No description

string
scan(mixed $xml)

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

string
scanFile(string $filestream)

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

Details

__construct($pattern = '<!DOCTYPE')

Parameters

$pattern

static getInstance(IReader $reader)

Parameters

IReader $reader

static threadSafeLibxmlDisableEntityLoaderAvailability()

static shutdown()

__destruct()

setAdditionalCallback(callable $callback)

Parameters

callable $callback

string scan(mixed $xml)

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

Parameters

mixed $xml

Return Value

string

Exceptions

Exception

string scanFile(string $filestream)

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

Parameters

string $filestream

Return Value

string

Exceptions

Exception