import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -16,7 +16,7 @@
* @package Zend_Session
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Namespace.php 11003 2008-08-24 14:43:15Z matthew $
* @version $Id: Namespace.php 13337 2008-12-17 11:11:25Z sidhighwind $
* @since Preview Release 0.2
*/
@ -98,6 +98,14 @@ class Zend_Session_Namespace extends Zend_Session_Abstract implements IteratorAg
throw new Zend_Session_Exception('Session namespace must not start with an underscore.');
}
if (preg_match('#(^[0-9])#i', $namespace[0])) {
/**
* @see Zend_Session_Exception
*/
require_once 'Zend/Session/Exception.php';
throw new Zend_Session_Exception('Session namespace must not start with a number.');
}
if (isset(self::$_singleInstances[$namespace])) {
/**
* @see Zend_Session_Exception