Hi, I just tested it on a PHP 7 environment. It seems to be working fine.
-
This reply was modified 9 years, 3 months ago by
Noor Alam.
I just can a PHP7 checker and got the following responses. I am looking to upgrade soon, but can’t until these changes are resolved.
/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php
--------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------
697 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
1489 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
2695 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
2700 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
2707 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
2709 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
--------------------------------------------------------------------------------------------------------------
Working just fine with my php7.1 system.
The problem with these php checkers is that they’re not really context aware.
If you look at those lines, you’ll find what the code actually says is:
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime(false);
In other words – I think it’ll be fine!