wp-admin/includes/class-pclzip.php error set_magic_quotes_runtime() removed since PHP 7.0

785 views Asked by At

I've checked my code compatibility with PHP 7 using PHP Code Sniffer, PHPCompatibility and I got the error bellow.

    [1mFILE: ...php7/wp-admin/includes/class-pclzip.php[0m
----------------------------------------------------------------------
[1mFOUND 2 ERRORS AFFECTING 2 LINES[0m
----------------------------------------------------------------------
 5345 | [31mERROR[0m | [1mFunction set_magic_quotes_runtime() is deprecated since
      |       | PHP 5.3 and removed since PHP 7.0[0m
      |       | (PHPCompatibility.PHP.DeprecatedFunctions.set_magic_quotes_runtimeDeprecatedRemoved)
 5376 | [31mERROR[0m | [1mFunction set_magic_quotes_runtime() is deprecated since
      |       | PHP 5.3 and removed since PHP 7.0[0m
      |       | (PHPCompatibility.PHP.DeprecatedFunctions.set_magic_quotes_runtimeDeprecatedRemoved)
----------------------------------------------------------------------

class-pclzip.php comes with Wordpress default installation. I would like to know if anyone was found an issue with this running on PHP 7. There was a fix for this but I wanted to double check anyway once this error is still appearing on my code sniffer log .

0

There are 0 answers