Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Patch session validator exceptions #548

Merged
merged 2 commits into from
Apr 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/Zend/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,9 @@ private static function _processValidators()
}
$validator = new $validator_name;
if ($validator->validate() === false) {
/** @see Zend_Session_Exception */
require_once 'Zend/Session/Exception.php';
throw new Zend_Session_Exception("This session is not valid according to {$validator_name}.");
/** @see Zend_Session_Validator_Exception */
require_once 'Zend/Session/Validator/Exception.php';
throw new Zend_Session_Validator_Exception("This session is not valid according to {$validator_name}.");
}
}
}
Expand Down
43 changes: 43 additions & 0 deletions library/Zend/Session/Validator/Exception.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Session
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
* @since Preview Release 0.2
*/


/**
* @see Zend_Session_Exception
*/
require_once 'Zend/Session/Exception.php';


/**
* Zend_Session_Validator_Exception
*
* @category Zend
* @package Zend_Session
* @subpackage Validator
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_Validator_Exception extends Zend_Session_Exception
{

}