X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b3ddbea8a296025a672b3c3ddca158dc51ed8080..d3947bc013df7edd54b46deed8230d2eeafc5ecb:/wp-includes/class-pop3.php diff --git a/wp-includes/class-pop3.php b/wp-includes/class-pop3.php index d0455d7e..ffbc377d 100644 --- a/wp-includes/class-pop3.php +++ b/wp-includes/class-pop3.php @@ -44,7 +44,10 @@ class POP3 { // This must be set to true // manually - function POP3 ( $server = '', $timeout = '' ) { + /** + * PHP5 constructor. + */ + function __construct ( $server = '', $timeout = '' ) { settype($this->BUFFER,"integer"); if( !empty($server) ) { // Do not allow programs to alter MAILSERVER @@ -62,6 +65,13 @@ class POP3 { return true; } + /** + * PHP4 constructor. + */ + public function POP3( $server = '', $timeout = '' ) { + self::__construct( $server, $timeout ); + } + function update_timer () { if (!ini_get('safe_mode')) set_time_limit($this->TIMEOUT); @@ -72,7 +82,7 @@ class POP3 { // Opens a socket to the specified server. Unless overridden, // port defaults to 110. Returns true on success, false on fail - // If MAILSERVER is set, override $server with it's value + // If MAILSERVER is set, override $server with its value. if (!isset($port) || !$port) {$port = 110;} if(!empty($this->MAILSERVER))