protected function _setMixed($data) { return is_resource($data) ? new Horde_Stream_Existing(array('stream' => $data)) : $data; }