|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22170 PEAR::Auth 1.1.1 reports success even if table-access fails
Submitted: 2003-02-11 10:25 UTC Modified: 2003-02-12 00:51 UTC
From: zaphod at s4r dot de Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 18 = ?
Subscribe to this entry?

 [2003-02-11 10:25 UTC] zaphod at s4r dot de
When there is an error (eg. typo in tablename) in the connection settings for Auth, getAuth returns true == success even if the check fails. The reason is in the method Auth::login:

        if (!empty($this->username)) {
            $login_ok = $this->storage->fetchData($this->username, $this->password);

$this->storage->fetchData returns an PEAR-Error-object, which will be treated like true == success in the method.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-12 00:51 UTC]
This bug has been fixed in CVS already. The changes will 
be part of the next release. 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 22:03:34 2021 UTC