equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_WindowsAzure |
16 * @package Zend_Service_WindowsAzure |
17 * @subpackage Storage |
17 * @subpackage Storage |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Storage.php 24697 2012-03-23 13:11:04Z ezimuel $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @see Zend_Http_Client |
24 * @see Zend_Http_Client |
25 */ |
25 */ |
32 |
32 |
33 /** |
33 /** |
34 * @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract |
34 * @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract |
35 */ |
35 */ |
36 require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php'; |
36 require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php'; |
|
37 |
|
38 /** @see Zend_Xml_Security */ |
|
39 require_once 'Zend/Xml/Security.php'; |
|
40 |
37 /** |
41 /** |
38 * @category Zend |
42 * @category Zend |
39 * @package Zend_Service_WindowsAzure |
43 * @package Zend_Service_WindowsAzure |
40 * @subpackage Storage |
44 * @subpackage Storage |
41 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
45 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
42 * @license http://framework.zend.com/license/new-bsd New BSD License |
46 * @license http://framework.zend.com/license/new-bsd New BSD License |
43 */ |
47 */ |
44 class Zend_Service_WindowsAzure_Storage |
48 class Zend_Service_WindowsAzure_Storage |
45 { |
49 { |
46 /** |
50 /** |
408 if (is_null($response)) { |
412 if (is_null($response)) { |
409 require_once 'Zend/Service/WindowsAzure/Exception.php'; |
413 require_once 'Zend/Service/WindowsAzure/Exception.php'; |
410 throw new Zend_Service_WindowsAzure_Exception('Response should not be null.'); |
414 throw new Zend_Service_WindowsAzure_Exception('Response should not be null.'); |
411 } |
415 } |
412 |
416 |
413 $xml = @simplexml_load_string($response->getBody()); |
417 $xml = Zend_Xml_Security::scan($response->getBody()); |
414 |
418 |
415 if ($xml !== false) { |
419 if ($xml !== false) { |
416 // Fetch all namespaces |
420 // Fetch all namespaces |
417 $namespaces = array_merge($xml->getNamespaces(true), $xml->getDocNamespaces(true)); |
421 $namespaces = array_merge($xml->getNamespaces(true), $xml->getDocNamespaces(true)); |
418 |
422 |