PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #464

LiveUser_Auth_Container_DB::userExists

Details

Submitted2003-12-19 19:41 UTC
Fromjmikola at burgiss dot com
Assignedarnaud
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSANY
Roadmaps(Not assigned)

Comments

[2003-12-19 19:41 UTC] jmikola at burgiss dot com

Description:
------------
the phpdoc comment states the following:

* If no match was found, the return value is false
* If a match was found, the auth_user_id from the database is being returned

however, false is only returned in the event that init_ok is false, or the query returned a DB error. In the event that no match was found, the current code will have null returned as the result of the missed select query. the only concern would be type-equality checking for false incorrectly inferring that a user did not exist.