PHP 7 Compatability checker - WPMU Dev Dashboard

Hi,

I've recently upgraded one of my servers to php 7 and in running the php compatability checker i'm getting errors on the wpmu dev dashboard & pro sites:

WPMU dev dashboard:

----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
77 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
313 | WARNING | Function name "__render_list" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
334 | WARNING | Function name "__error_reporting" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
376 | WARNING | Function name "__value_format" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
390 | WARNING | Function name "__const_format" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
----------------------------------------------------------------------------------------------------------------------------------------------------

PRO SITES:

---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
239 | WARNING | Method name "Stripe_Object::__toJSON" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
254 | WARNING | Method name "Stripe_Object::__toArray" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
---------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /nas/content/live/mumdays/wp-content/plugins/pro-sites/pro-sites-files/tcpdf/tcpdf.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------
7968 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
8339 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
26962 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
-----------------------------------------------------------------------------------------------------------------------------

FILE: /nas/content/live/mumdays/wp-content/plugins/pro-sites/pro-sites-files/plugins-loader.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
94 | ERROR | Global with variable variables is not allowed since PHP 7.0
-----------------------------------------------------------------------------------------------

FILE: /nas/content/live/mumdays/wp-content/plugins/pro-sites/pro-sites-files/lib/psts_pricing_table.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
414 | ERROR | Global with variable variables is not allowed since PHP 7.0
-------------------------------------------------------------------------------------------------------

FILE: /nas/content/live/mumdays/wp-content/plugins/pro-sites/pro-sites-files/lib/psts_pricing_table_admin.php
-------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------
53 | ERROR | Global with variable variables is not allowed since PHP 7.0
202 | ERROR | Global with variable variables is not allowed since PHP 7.0
431 | ERROR | Global with variable variables is not allowed since PHP 7.0
-------------------------------------------------------------------------------------------------------------

    Denitsa

    Hello Rich,
    I hope you are having an amazing day!

    Those are considered false alarms, since those types of plugins usually don't actually process code but instead search the text and scan for a list of function references that may be at risk. This makes it higly likely that some "false positives" might occur. .

    For example, the reference of mysql is in that file for backwards compatibility. The default is mysqli. The other functions mentioned are discouraged, but not deprecated. That means you won't get any fatal error in PHP 7 because of them.

    Our plugins will use newer methods if available and will not cause any actual error in PHP 7.
    The PHP Compatibility Checker scanner (I assume you're using this one, correct?) throws false alarms on backwards compatible code, you can get that for a great deal of plugins.

    I am running ProSites and WPMU DEV Dashboard on a PHP 7 server and I'm not getting any fatal errors. However, please let us know if you experience any problems with those plugins and PHP 7. We will be glad to look into the issue.

    Keep us posted!

    Warm regards,
    Denitsa