Skip to content

Commit

Permalink
Remove unreachable code from the constructor.
Browse files Browse the repository at this point in the history
PHP4 will not reach PHP5 constructor method and
the condition will never evaluate true.
  • Loading branch information
Jukka Svahn committed May 6, 2014
1 parent 1da0fcb commit 4550fb6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,6 @@ class PHPMailer
*/
public function __construct($exceptions = false)
{
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
exit("Sorry, PHPMailer will only run on PHP version 5 or greater!\n");
}
$this->exceptions = ($exceptions == true);
//Make sure our autoloader is loaded
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
Expand Down

0 comments on commit 4550fb6

Please sign in to comment.