Bug #1942 [Opn->Fbk]: wrong parameter-type specification in Net_POP3::login
| From: | mj@php.net | Date: | Thu, 29 Jul 2004 12:27:56 +0000 |
| Subject: | Bug #1942 [Opn->Fbk]: wrong parameter-type specification in Net_POP3::login | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4690@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
Updated by: mj@php.net
Reported By: swolfsheimer at netz98 dot de
-Status: Open
+Status: Feedback
Type: Bug
Package: Documentation
PHP Version: Irrelevant
New Comment:
After examining the code of Net_POP3, I cannot find any evidence that
the third parameter should be a string. Can you point us to the place
in the code that makes you think so?
Apart from that I've fixed the bogus usage of Net_Ping.
Previous Comments:
------------------------------------------------------------------------
[2004-07-22 03:50:56] php at cipri dot com
URLS:
http://pear.php.net/manual/en/package.networking.net-pop3.login.php
http://pear.php.net/manual/en/package.networking.net-pop3.php
------------------------------------------------------------------------
[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