Bug #1942 [NEW]: wrong parameter-type specification in Net_POP3::login
| From: | swolfsheimer at netz98 dot de | Date: | Thu, 22 Jul 2004 00:05:29 +0000 |
| Subject: | Bug #1942 [NEW]: wrong parameter-type specification in Net_POP3::login | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4637@lists.php.net to get a copy of this message | ||
From: swolfsheimer at netz98 dot de
Operating system:
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: wrong parameter-type specification in Net_POP3::login
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 bug report at http://pear.php.net/bugs/bug.php?id=1942&edit=1
--