web/lib/Zend/Controller/Response/Abstract.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    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_Controller
    16  * @package    Zend_Controller
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Abstract.php 21301 2010-03-02 23:01:19Z yoshida@zend.co.jp $
    19  * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * Zend_Controller_Response_Abstract
    23  * Zend_Controller_Response_Abstract
    24  *
    24  *
    25  * Base class for Zend_Controller responses
    25  * Base class for Zend_Controller responses
    26  *
    26  *
    27  * @package Zend_Controller
    27  * @package Zend_Controller
    28  * @subpackage Response
    28  * @subpackage Response
    29  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    29  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    30  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    30  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    31  */
    31  */
    32 abstract class Zend_Controller_Response_Abstract
    32 abstract class Zend_Controller_Response_Abstract
    33 {
    33 {
    34     /**
    34     /**
   255         if (! count($this->_headersRaw)) {
   255         if (! count($this->_headersRaw)) {
   256             return $this;
   256             return $this;
   257         }
   257         }
   258 
   258 
   259         $key = array_search($headerRaw, $this->_headersRaw);
   259         $key = array_search($headerRaw, $this->_headersRaw);
   260         unset($this->_headersRaw[$key]);
   260         if ($key !== false) {
       
   261             unset($this->_headersRaw[$key]);
       
   262         }
   261 
   263 
   262         return $this;
   264         return $this;
   263     }
   265     }
   264 
   266 
   265     /**
   267     /**