cvs: pear /Auth_HTTP Auth_HTTP.php

From: Date: Sun, 01 Oct 2006 23:19:01 +0000
Subject: cvs: pear /Auth_HTTP Auth_HTTP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42338@lists.php.net to get a copy of this message
hirokawa Sun Oct 1 23:19:01 2006 UTC Modified files: /pear/Auth_HTTP Auth_HTTP.php Log: fixed bug #7536 PEAR.php is not included. http://cvs.php.net/viewvc.cgi/pear/Auth_HTTP/Auth_HTTP.php?r1=1.27&r2=1.28&diff_format=u Index: pear/Auth_HTTP/Auth_HTTP.php diff -u pear/Auth_HTTP/Auth_HTTP.php:1.27 pear/Auth_HTTP/Auth_HTTP.php:1.28 --- pear/Auth_HTTP/Auth_HTTP.php:1.27 Mon Apr 4 12:48:33 2005 +++ pear/Auth_HTTP/Auth_HTTP.php Sun Oct 1 23:19:01 2006 @@ -18,7 +18,7 @@ // | David Costa <gurugeek@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth_HTTP.php,v 1.27 2005/04/04 12:48:33 hirokawa Exp $ +// $Id: Auth_HTTP.php,v 1.28 2006/10/01 23:19:01 hirokawa Exp $ // require_once "Auth/Auth.php"; @@ -49,7 +49,7 @@ * @author David Costa <gurugeek@php.net> * @package Auth_HTTP * @extends Auth - * @version $Revision: 1.27 $ + * @version $Revision: 1.28 $ */ class Auth_HTTP extends Auth { @@ -321,7 +321,8 @@ } } } else { - return PEAR::raiseError('authType is invalid.'); + include_once 'PEAR.php'; + return PEAR::throwError('authType is invalid.'); } if ($this->options['sessionSharing'] && @@ -385,7 +386,8 @@ $pwd = $dbs->db->getOne($query); // password stored in container. if (DB::isError($pwd)) { - return PEAR::raiseError($pwd->getMessage(), $pwd->getCode()); + include_once 'PEAR.php'; + return PEAR::throwError($pwd->getMessage(), $pwd->getCode()); } if ($this->options['cryptType'] == 'none') {

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