PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #453

LiveUser_Perm_Container_DB_Complex::userExists

Details

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

Comments

[2003-12-18 16:14 UTC] jmikola at burgiss dot com

Description:
------------
phpdoc comment states that function returns "boolean; true if the id was found, else false"

inside function definition, an sql query result is directly returned, which would return integer 1 if the user exists, or null if the user does not exists. in the event that the perm container was not initialized, boolean false is returned.

this function would operate correctly on the assumption of php type conversion, but it is less forgiving if using type-equality checks on the result.