Re: cvs: pear /LiveUser LiveUser.php /LiveUser/Auth PEARAuth.php
| From: | Lukas Kahwe Smith | Date: | Tue, 29 Nov 2005 07:05:29 +0000 |
| Subject: | Re: cvs: pear /LiveUser LiveUser.php /LiveUser/Auth PEARAuth.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-36587@lists.php.net to get a copy of this message | ||
Arnaud Limbourg wrote:
arnaud Mon Nov 28 17:58:22 2005 EDTthis is not going to work reliably as the methods are called statically. regards, LukasModified files: /pear/LiveUser LiveUser.php /pear/LiveUser/Auth PEARAuth.php Log:more helpful error message when the class cannot be loaded make the PEAR::Auth wrapper use the passed handle and password http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.130&r2=1.131&ty=u Index: pear/LiveUser/LiveUser.php diff -u pear/LiveUser/LiveUser.php:1.130 pear/LiveUser/LiveUser.php:1.131 --- pear/LiveUser/LiveUser.php:1.130 Mon Nov 28 14:55:59 2005 +++ pear/LiveUser/LiveUser.php Mon Nov 28 17:58:18 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: LiveUser.php,v 1.130 2005/11/28 19:55:59 lsmith Exp $ + * @version CVS: $Id: LiveUser.php,v 1.131 2005/11/28 22:58:18 arnaud Exp $ * @link http://pear.php.net/LiveUser */ @@ -563,6 +563,10 @@if ($auth->init($conf, $containerName) === false) { $auth = false; } + } else { + $this->_stack->push( + LIVEUSER_ERROR_CONFIG, 'exception', + array(), 'Cannot load class ' . $classname); } return $auth; }@@ -586,7 +590,12 @@if ($perm->init($conf) === false) { $perm = false; } + } else { + $this->_stack->push( + LIVEUSER_ERROR_CONFIG, 'exception', + array(), 'Cannot load class ' . $classname); }+return $perm; }