cvs: pear /Auth/Container IMAP.php
| From: | Martin Jansen | Date: | Fri, 10 Jan 2003 18:22:36 +0000 |
| Subject: | cvs: pear /Auth/Container IMAP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8173@lists.php.net to get a copy of this message | ||
mj Fri Jan 10 13:22:36 2003 EDT
Modified files:
/pear/Auth/Container IMAP.php
Log:
* Wrap some lines.
Index: pear/Auth/Container/IMAP.php
diff -u pear/Auth/Container/IMAP.php:1.3 pear/Auth/Container/IMAP.php:1.4
--- pear/Auth/Container/IMAP.php:1.3 Fri Jan 10 13:19:05 2003
+++ pear/Auth/Container/IMAP.php Fri Jan 10 13:22:36 2003
@@ -16,7 +16,7 @@
// | Authors: Jeroen Houben <jeroen@terena.nl> |
// +----------------------------------------------------------------------+
//
-// $Id: IMAP.php,v 1.3 2003/01/10 18:19:05 mj Exp $
+// $Id: IMAP.php,v 1.4 2003/01/10 18:22:36 mj Exp $
//
require_once "Auth/Container.php";
@@ -46,7 +46,7 @@
*
* @author Jeroen Houben <jeroen@terena.nl>
* @package Auth
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
class Auth_Container_IMAP extends Auth_Container
{
@@ -65,7 +65,8 @@
function Auth_Container_IMAP($params)
{
if (!extension_loaded('imap')) {
- return PEAR::raiseError("Cannot use IMAP authentication, IMAP extension not
loaded!", 41, PEAR_ERROR_DIE);
+ return PEAR::raiseError("Cannot use IMAP authentication, IMAP extension not
loaded!",
+ 41, PEAR_ERROR_DIE);
}
$this->_setDefaults();
@@ -96,11 +97,15 @@
* @access private
*/
function _checkServer($timeout=20) {
- $fp = @fsockopen ($this->options['host'], $this->options['port'],
$errno, $errstr, $timeout);
+ $fp = @fsockopen ($this->options['host'], $this->options['port'],
+ $errno, $errstr, $timeout);
if ($fp) {
@fclose($fp);
} else {
- return PEAR::raiseError("Error connecting to IMAP server
".$this->options['host'].":".$this->options['port'], 41,
PEAR_ERROR_DIE);
+ $message = "Error connecting to IMAP server "
+ . $this->options['host']
+ . ":" . $this->options['port'];
+ return PEAR::raiseError($message, 41, PEAR_ERROR_DIE);
}
}