Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 09f2760

Browse files
committed
Added Session Validator specific Exception class
1 parent 4a80504 commit 09f2760

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

library/Zend/Session.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@ private static function _processValidators()
811811
}
812812
$validator = new $validator_name;
813813
if ($validator->validate() === false) {
814-
/** @see Zend_Session_Exception */
815-
require_once 'Zend/Session/Exception.php';
816-
throw new Zend_Session_Exception("This session is not valid according to {$validator_name}.");
814+
/** @see Zend_Session_Validator_Exception */
815+
require_once 'Zend/Session/Validator/Exception.php';
816+
throw new Zend_Session_Validator_Exception("This session is not valid according to {$validator_name}.");
817817
}
818818
}
819819
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* Zend Framework
4+
*
5+
* LICENSE
6+
*
7+
* This source file is subject to the new BSD license that is bundled
8+
* with this package in the file LICENSE.txt.
9+
* It is also available through the world-wide-web at this URL:
10+
* http://framework.zend.com/license/new-bsd
11+
* If you did not receive a copy of the license and are unable to
12+
* obtain it through the world-wide-web, please send an email
13+
* to [email protected] so we can send you a copy immediately.
14+
*
15+
* @category Zend
16+
* @package Zend_Session
17+
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
18+
* @license http://framework.zend.com/license/new-bsd New BSD License
19+
* @version $Id$
20+
* @since Preview Release 0.2
21+
*/
22+
23+
24+
/**
25+
* @see Zend_Session_Exception
26+
*/
27+
require_once 'Zend/Session/Exception.php';
28+
29+
30+
/**
31+
* Zend_Session_Exception
32+
*
33+
* @category Zend
34+
* @package Zend_Session
35+
* @subpackage Validator
36+
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
37+
* @license http://framework.zend.com/license/new-bsd New BSD License
38+
*/
39+
class Zend_Session_Validator_Exception extends Zend_Session_Exception
40+
{
41+
42+
}
43+

0 commit comments

Comments
 (0)