自PHP 7.0以来已删除wp-admin / includes / class-pclzip.php错误set_magic_quotes_runtime()

时间:2016-12-16 14:10:48

标签: php wordpress php-7 phpcs

我使用PHP Code Sniffer,PHPCompatibility检查了我与PHP 7的代码兼容性,我收到了错误。

    [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附带Wordpress默认安装。我想知道是否有人发现这是在PHP 7上运行的问题。这有一个fix但是我想在我的代码嗅探器日志上仍然出现此错误时再进行双重检查。

0 个答案:

没有答案