Methods

Return true if PHP is running with PHP-FPM

isPhpFpm() : boolean

Returns

boolean

Scan XML string for potential XXE and XEE attacks

scan(string $xml, \DOMDocument $dom) : \SimpleXMLElement | \ZendXml\DomDocument | boolean

Parameters

$xml

string

$dom

\ZendXml\DomDocument

Exceptions

\ZendXml\Exception\RuntimeException

Returns

\SimpleXMLElement\ZendXml\DomDocumentboolean

Scan XML file for potential XXE/XEE attacks

scanFile(string $file, \DOMDocument $dom) : \SimpleXMLElement | \ZendXml\DomDocument

Parameters

$file

string

Exceptions

\ZendXml\Exception\InvalidArgumentException

Returns

\SimpleXMLElement\ZendXml\DomDocument

Heuristic scan to detect entity in XML

heuristicScan(string $xml) 

Parameters

$xml

string

Exceptions

\ZendXml\Exception\RuntimeException

 Constants

 

ENTITY_DETECT

ENTITY_DETECT