web/lib/Zend/Service/Amazon/Ec2/Response.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    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_Amazon
    16  * @package    Zend_Service_Amazon
    17  * @subpackage Ec2
    17  * @subpackage Ec2
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 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: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Http_Response
    24  * @see Zend_Http_Response
    25  */
    25  */
    27 
    27 
    28 /**
    28 /**
    29  * @category   Zend
    29  * @category   Zend
    30  * @package    Zend_Service_Amazon
    30  * @package    Zend_Service_Amazon
    31  * @subpackage Ec2
    31  * @subpackage Ec2
    32  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  */
    34  */
    35 class Zend_Service_Amazon_Ec2_Response {
    35 class Zend_Service_Amazon_Ec2_Response {
    36     /**
    36     /**
    37      * XML namespace used for EC2 responses.
    37      * XML namespace used for EC2 responses.
   116         try {
   116         try {
   117             $body = $this->_httpResponse->getBody();
   117             $body = $this->_httpResponse->getBody();
   118         } catch (Zend_Http_Exception $e) {
   118         } catch (Zend_Http_Exception $e) {
   119             $body = false;
   119             $body = false;
   120         }
   120         }
   121 
   121         
   122         if ($this->_document === null) {
   122         if ($this->_document === null) {
   123             if ($body !== false) {
   123             if ($body !== false) {
   124                 // turn off libxml error handling
   124                 // turn off libxml error handling
   125                 $errors = libxml_use_internal_errors();
   125                 $errors = libxml_use_internal_errors();
   126 
   126