#22170 [NEW]: PEAR::Auth 1.1.1 reports success even if table-access fails

From: Date: Tue, 11 Feb 2003 16:25:49 +0000
Subject: #22170 [NEW]: PEAR::Auth 1.1.1 reports success even if table-access fails
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13109@lists.php.net to get a copy of this message
From: zaphod@s4r.de Operating system: PHP version: 4.3.0 PHP Bug Type: PEAR related Bug description: PEAR::Auth 1.1.1 reports success even if table-access fails 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. -- Edit bug report at http://bugs.php.net/?id=22170&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22170&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22170&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22170&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22170&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22170&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22170&r=support Expected behavior: http://bugs.php.net/fix.php?id=22170&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22170&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22170&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22170&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22170&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22170&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22170&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22170&r=gnused

« previous php.pear.dev (#13109) next »