cvs: pear /LiveUser/Perm Simple.php /LiveUser/Perm/Storage Cache.php

From: Date: Sun, 20 Feb 2005 23:04:43 +0000
Subject: cvs: pear /LiveUser/Perm Simple.php /LiveUser/Perm/Storage Cache.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29580@lists.php.net to get a copy of this message
lsmith Sun Feb 20 18:04:43 2005 EDT Modified files: /pear/LiveUser/Perm/Storage Cache.php /pear/LiveUser/Perm Simple.php Log: - added error stack calls that were missing http://cvs.php.net/diff.php/pear/LiveUser/Perm/Storage/Cache.php?r1=1.5&r2=1.6&ty=u Index: pear/LiveUser/Perm/Storage/Cache.php diff -u pear/LiveUser/Perm/Storage/Cache.php:1.5 pear/LiveUser/Perm/Storage/Cache.php:1.6 --- pear/LiveUser/Perm/Storage/Cache.php:1.5 Sun Feb 20 14:13:36 2005 +++ pear/LiveUser/Perm/Storage/Cache.php Sun Feb 20 18:04:43 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Cache.php,v 1.5 2005/02/20 19:13:36 dufuz Exp $ + * @version CVS: $Id: Cache.php,v 1.6 2005/02/20 23:04:43 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -71,6 +71,8 @@ $this->_storage = LiveUser::storageFactory($confArray); if ($this->_storage === false) { + $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception', + array('msg' => 'Could not instanciate storage container')); return false; } http://cvs.php.net/diff.php/pear/LiveUser/Perm/Simple.php?r1=1.17&r2=1.18&ty=u Index: pear/LiveUser/Perm/Simple.php diff -u pear/LiveUser/Perm/Simple.php:1.17 pear/LiveUser/Perm/Simple.php:1.18 --- pear/LiveUser/Perm/Simple.php:1.17 Sun Feb 20 14:13:36 2005 +++ pear/LiveUser/Perm/Simple.php Sun Feb 20 18:04:43 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Simple.php,v 1.17 2005/02/20 19:13:36 dufuz Exp $ + * @version CVS: $Id: Simple.php,v 1.18 2005/02/20 23:04:43 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -129,6 +129,8 @@ function init(&$conf) { if (!isset($conf['storage'])) { + $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception', + array('msg' => 'Missing storage configuration array')); return false; } @@ -143,6 +145,8 @@ $this->_storage = LiveUser::storageFactory($conf['storage']); if ($this->_storage === false) { + $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception', + array('msg' => 'Could not instanciate storage container')); return false; }

« previous php.pear.cvs (#29580) next »