diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-includes/class-pop3.php --- a/wp/wp-includes/class-pop3.php Tue Jun 09 11:14:17 2015 +0000 +++ b/wp/wp-includes/class-pop3.php Mon Oct 14 17:39:30 2019 +0200 @@ -44,7 +44,10 @@ // 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 @@ 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 @@ // 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)) @@ -420,7 +430,7 @@ if(!$this->is_ok($reply)) { // The POP3 RSET command -never- gives a -ERR - // response - if it ever does, something truely + // response - if it ever does, something truly // wild is going on. $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]";