mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
PHPMailer: Remove a check for PHP 5.0
Summary: Phorge requires PHP 5.5, thus remove a version check for PHP 5.0. Compare the same code in https://github.com/PHPMailer/PHPMailer/blob/master/src/POP3.php#L282-L283 Test Plan: Carefully read the code. Reviewers: O1 Blessed Committers, speck Reviewed By: O1 Blessed Committers, speck Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25661
This commit is contained in:
parent
e6925c83c1
commit
a6499aee0e
1 changed files with 2 additions and 11 deletions
11
externals/phpmailer/class.pop3.php
vendored
11
externals/phpmailer/class.pop3.php
vendored
|
@ -239,16 +239,7 @@ class POP3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Increase the stream time-out
|
// Increase the stream time-out
|
||||||
|
stream_set_timeout($this->pop_conn, $tval, 0);
|
||||||
// Check for PHP 4.3.0 or later
|
|
||||||
if (version_compare(phpversion(), '5.0.0', 'ge')) {
|
|
||||||
stream_set_timeout($this->pop_conn, $tval, 0);
|
|
||||||
} else {
|
|
||||||
// Does not work on Windows
|
|
||||||
if (substr(PHP_OS, 0, 3) !== 'WIN') {
|
|
||||||
socket_set_timeout($this->pop_conn, $tval, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get the POP3 server response
|
// Get the POP3 server response
|
||||||
$pop3_response = $this->getResponse();
|
$pop3_response = $this->getResponse();
|
||||||
|
|
Loading…
Reference in a new issue