/** * @see Zend_Session_Namespace::applySet() */ public function applySet($callback) { if ($this->_persistObject) { $argList = func_get_args(); $argList[0] = $_SESSION[$this->_namespace]; $result = call_user_func_array($callback, $argList); if (!is_object($result)) { /** * @see Zend_Session_Exception */ require_once 'Zend/Session/Exception.php'; throw new Zend_Session_Exception('Result must be an array. Got: ' . gettype($result)); } $_SESSION[$this->_namespace] = $result; return $result; } return parent::applySet($callback); }