Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
  2. //SPL autoloading was introduced in PHP 5.1.2
  3. if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
  4. spl_autoload_register('PHPMailerAutoload', true, true);
  5. } else {
  6. spl_autoload_register('PHPMailerAutoload');
  7. }
  8. } else {
  9. /**
  10. * Fall back to traditional autoload for old PHP versions
  11. * @param string $classname The name of the class to load
  12. */
  13. function __autoload($classname)
  14. {
  15. PHPMailerAutoload($classname);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement