File_Passwd_Common::_auth()

File_Passwd_Common::_auth() -- Base method for File_Passwd::staticAuth()

Referentiesamenvatting

mixed File_Passwd_Common::_auth (string $file, string $id)

Beschrijving

Base method for File_Passwd_*::staticAuth()

(Bedoeld voor pakket ontwikkelaars.)

Parameter

string $file

path to passwd file

string $id

user_id to search for

Return waarde

Returns string line of passwd file containing $id, FALSE if $id wasn't found, or PEAR_Error on failure.

Tabel 38-1. Mogelijke PEAR_Error waarden

Error CodeSummary
FILE_PASSWD_E_EXISTS_NOTpasswd file doesn't exist
FILE_PASSWD_E_FILE_NOT_OPENEDpasswd file couldn't be opened in read mode
FILE_PASSWD_E_FILE_NOT_LOCKEDpasswd file couldn't be locked shared
FILE_PASSWD_E_FILE_NOT_UNLOCKEDpasswd file couldn't be unlocked (only if auth fails)
FILE_PASSWD_E_FILE_NOT_CLOSEDpasswd file couldn't be closed (only if auth fails)

Note

Deze functie kan niet statisch worden aangeroepen.