Methods
Return true if PHP is running with PHP-FPM
isPhpFpm() : 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
Returns
Scan XML file for potential XXE/XEE attacks
scanFile(string $file, \DOMDocument $dom) : \SimpleXMLElement | \ZendXml\DomDocument
Parameters
$file
string
Exceptions
Returns
Heuristic scan to detect entity in XML
heuristicScan(string $xml)
Parameters
$xml
string
Exceptions
Constants
ENTITY_DETECT
ENTITY_DETECT