Skip to content

Commit

Permalink
Use external ZendXml\Security
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel authored and weierophinney committed Mar 5, 2014
1 parent bbcf41e commit 68d0756
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 281 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"homepage": "http://framework.zend.com/",
"license": "BSD-3-Clause",
"require": {
"php": ">=5.3.3"
"php": ">=5.3.3",
"zendframework/zendxml": "dev-master"
},
"require-dev": {
"doctrine/annotations": ">=1.0",
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Json/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use SimpleXMLElement;
use Zend\Json\Exception\RecursionException;
use Zend\Json\Exception\RuntimeException;
use Zend\Xml\Security as XmlSecurity;
use ZendXml\Security as XmlSecurity;

/**
* Class for encoding to and decoding from JSON.
Expand Down
14 changes: 0 additions & 14 deletions library/Zend/Xml/Exception/ExceptionInterface.php

This file was deleted.

19 changes: 0 additions & 19 deletions library/Zend/Xml/Exception/InvalidArgumentException.php

This file was deleted.

19 changes: 0 additions & 19 deletions library/Zend/Xml/Exception/RuntimeException.php

This file was deleted.

84 changes: 0 additions & 84 deletions library/Zend/Xml/Security.php

This file was deleted.

4 changes: 2 additions & 2 deletions library/Zend/XmlRpc/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Zend\XmlRpc;

use SimpleXMLElement;
use Zend\Xml\Security as XmlSecurity;
use ZendXml\Security as XmlSecurity;

/**
* XMLRPC Faults
Expand Down Expand Up @@ -182,7 +182,7 @@ public function loadXml($fault)
$xmlErrorsFlag = libxml_use_internal_errors(true);
try {
$xml = XmlSecurity::scan($fault);
} catch (\Zend\Xml\Exception\RuntimeException $e) {
} catch (\ZendXml\Exception\RuntimeException $e) {
// Unsecure XML
throw new Exception\RuntimeException('Failed to parse XML fault: ' . $e->getMessage(), 500, $e);
}
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/XmlRpc/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Zend\XmlRpc;

use Zend\Xml\Security as XmlSecurity;
use ZendXml\Security as XmlSecurity;

/**
* XmlRpc Response
Expand Down Expand Up @@ -155,7 +155,7 @@ public function loadXml($response)

try {
$xml = XmlSecurity::scan($response);
} catch (\Zend\Xml\Exception\RuntimeException $e) {
} catch (\ZendXml\Exception\RuntimeException $e) {
$this->fault = new Fault(651);
$this->fault->setEncoding($this->getEncoding());
return false;
Expand Down
139 changes: 0 additions & 139 deletions tests/ZendTest/Xml/SecurityTest.php

This file was deleted.

0 comments on commit 68d0756

Please sign in to comment.