Xml/Security.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Xml
- Version
- $Id$
\Zend_Xml_Security
Package: Zend_Xml_SecurityScan



- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Methods

heuristicScan(string $xml) : voidstatic
Heuristic scan to detect entity in XML
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $xml | string |
| Exception | Description |
|---|---|
| \Zend_Xml_Exception |

loadXmlErrorHandler(integer $errno, string $errstr, string $errfile, integer $errline) : boolstatic
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $errno | integer | |
| $errstr | string | |
| $errfile | string | |
| $errline | integer |
| Type | Description |
|---|---|
| bool |

scan(string $xml, \DomDocument $dom = null) : \SimpleXMLElement | \DomDocument | booleanstatic
Scan XML string for potential XXE and XEE attacks
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $xml | string | |
| $dom | \DomDocument |
| Type | Description |
|---|---|
| \SimpleXMLElement | \DomDocument | boolean |
| Exception | Description |
|---|---|
| \Zend_Xml_Exception |

scanFile(string $file, \DOMDocument $dom = null) : \SimpleXMLElement | \DomDocumentstatic
Scan XML file for potential XXE/XEE attacks
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $file | string | |
| $dom | \DOMDocument |
| Type | Description |
|---|---|
| \SimpleXMLElement | \DomDocument |
| Exception | Description |
|---|---|
| \Zend_Xml_Exception |