#25986 [NEW]: POP3 auth with Net_POP3

From: Date: Sat, 25 Oct 2003 16:16:28 +0000
Subject: #25986 [NEW]: POP3 auth with Net_POP3
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22986@lists.php.net to get a copy of this message
From: elf@php.net Operating system: Red Hat Linux 9+rawhide PHP version: 4.3.3 PHP Bug Type: PEAR related Bug description: POP3 auth with Net_POP3 Description: ------------ The present Auth/POP3 seem to be only for APOP. However, I attest by POP3. Then, I created the easy patch. Please make it reference. --- lib/pear/Auth/Container/POP3.php 2003-10-23 23:48:58.000000000 +0900 +++ /usr/share/pear/Auth/Container/POP3.php 2003-10-23 23:50:28.000000000 +0900 @@ -47,12 +47,6 @@ */ var $port='110'; - /** - * Use APOP Auth - * @var boolean TRUE ... APOP/FALSE ... NO APOP - */ - var $apop = true; - // {{{ Constructor /** @@ -71,20 +65,12 @@ if(isset($server['port'])){ $this->port = $server['port']; } - if(isset($server['apop'])){ - $this->apop = $server['apop']; - } } else{ if(strstr($server, ':')){ $serverparts = explode(':', trim($server)); $this->server = $serverparts[0]; $this->port = $serverparts[1]; - if ( $serverparts[1] == '' || !strcasecmp( $serverparts[1], 'APOP')) { - $this->apop = TRUE; - } else { - $this->apop = FALSE; - } } else { @@ -111,7 +97,7 @@ if(!$res){ return($res); } - $result = $pop3->login($username, $password, $this->apop); + $result = $pop3->login($username, $password); $pop3->disconnect(); return $result; } Expected result: ---------------- ex) $auth = new Auth( 'POP3', 'localhost:110:pop3', 'login'); $params = array( 'host'=>'localhost', 'port'=>110, 'apop'=>false); $auth = new Auth( 'POP3', $params, 'login'); -- Edit bug report at http://bugs.php.net/?id=25986&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25986&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25986&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25986&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25986&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25986&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25986&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25986&r=support Expected behavior: http://bugs.php.net/fix.php?id=25986&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25986&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25986&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25986&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25986&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25986&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25986&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25986&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25986&r=float

« previous php.pear.dev (#22986) next »