[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Bug #1942 [Com]: wrong parameter-type specification in Net_POP3::login
From:       "php at cipri dot com" <pear-doc () lists ! php ! net>
Date:       2004-07-22 7:50:56
Message-ID: 20040722075056.64047.qmail () pb12 ! pair ! com
[Download RAW message or body]

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

-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic