-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://www.golem.de/news/websicherheit-phpmailer-bringt-eine-boese-weihnachtsueberraschung-1612-125255.html https://github.com/PHPMailer/PHPMailer/releases
- Loading branch information
Showing
57 changed files
with
7,163 additions
and
1,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
/** | ||
* PHPMailer SPL autoloader. | ||
* PHP Version 5.0.0 | ||
* PHP Version 5 | ||
* @package PHPMailer | ||
* @link https://github.com/PHPMailer/PHPMailer/ | ||
* @author Marcus Bointon (coolbru) <[email protected]> | ||
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
* @author Marcus Bointon (Synchro/coolbru) <[email protected]> | ||
* @author Jim Jagielski (jimjag) <[email protected]> | ||
* @author Andy Prevost (codeworxtech) <[email protected]> | ||
* @author Brent R. Matzelle (original founder) | ||
* @copyright 2013 Marcus Bointon | ||
* @copyright 2012 - 2014 Marcus Bointon | ||
* @copyright 2010 - 2012 Jim Jagielski | ||
* @copyright 2004 - 2009 Andy Prevost | ||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
|
@@ -30,4 +30,20 @@ function PHPMailerAutoload($classname) | |
} | ||
} | ||
|
||
spl_autoload_register('PHPMailerAutoload'); | ||
if (version_compare(PHP_VERSION, '5.1.2', '>=')) { | ||
//SPL autoloading was introduced in PHP 5.1.2 | ||
if (version_compare(PHP_VERSION, '5.3.0', '>=')) { | ||
spl_autoload_register('PHPMailerAutoload', true, true); | ||
} else { | ||
spl_autoload_register('PHPMailerAutoload'); | ||
} | ||
} else { | ||
/** | ||
* Fall back to traditional autoload for old PHP versions | ||
* @param string $classname The name of the class to load | ||
*/ | ||
function __autoload($classname) | ||
{ | ||
PHPMailerAutoload($classname); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.2.19 |
Oops, something went wrong.