PHP Depreciated notice
-
Hi there,
Awesome plugin, thank you!I’m getting a PHP Depreciated notice in my debug log, here are the details:
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /wp-content/plugins/gmail-smtp/PHPMailer/PHPMailerAutoload.php on line 45
Looking at the code in question, it seems to be in there for compatibility with PHP older than 5.1.2.
As your plugin states a minimum requirement of PHP 5.6 does this need to be in there?If it doesn’t, am I safe to remove this:
`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);
}
}`Not a big deal at all of course, I’m just trying to clean up my error log 🙂
Thanks for your help!
Kind regards,
JP
- The topic ‘PHP Depreciated notice’ is closed to new replies.