Bug #1942 [Com]: wrong parameter-type specification in Net_POP3::login

From: Date: Thu, 22 Jul 2004 07:50:56 +0000
Subject: Bug #1942 [Com]: wrong parameter-type specification in Net_POP3::login
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4638@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=1942&edit=1 ID: 1942 Comment by: php at cipri dot com Reported By: swolfsheimer at netz98 dot de Status: Open Type: Bug Package: Documentation PHP Version: Irrelevant New Comment: URLS: http://pear.php.net/manual/en/package.networking.net-pop3.login.php http://pear.php.net/manual/en/package.networking.net-pop3.php Previous Comments: ------------------------------------------------------------------------ [2004-07-21 20:05:29] swolfsheimer at netz98 dot de Description: ------------ In the PEAR manual following declaration is specified: boolean Net_POP3::login (string $user string $pass boolean $apop) Am I right, that the last parameter $apop is not of type boolean, but of type "boolean or string"? By looking into the source code and following the parameter over serval function-calls, one can find a switch (in function _cmdAuthenticate) between the strings 'DIGEST-MD5', 'CRAM-MD5', 'APOP', 'PLAIN' , 'LOGIN', 'USER' or alternativly a false - value for this parameter. following code gives not the result as expected according to the documentation: $pop3->login($user, $pass,true); this would be the correct call: $pop3->login($user, $pass,"APOP"); Another thing: Since the last(?) update of the Net_POP3 class-documentation there are the wrong classnames (Net_Ping instead of Net_POP3) given on the overview page ( Net_Ping::Net_POP3() and so on) Reproduce code: --------------- ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=1942&edit=1

« previous php.pear.doc (#4638) next »