| 开发者 | catcodestudio |
|---|---|
| 更新时间 | 2026年11月5日 22:13 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp catcode-php-check scan, wp catcode-php-check report --target=8.4, wp catcode-php-check export report.csv.$text{0}), nested ternaries without parentheses, the (real) and (unset) casts, =& new, classes named after new reserved words (mixed, never, readonly, match), a function called match() or __autoload().each(), create_function(), get_magic_quotes_gpc(), money_format(), split(), the ereg family and many more.mysql_* (PHP 7.0), mcrypt_* (7.2), xmlrpc_* (8.0), imap_*, pspell_* and oci_* (8.4).implode() with the array first, parse_str() without a result, mktime() without arguments), and code that silently does something else: old-style constructors that no longer run, is_resource() on handles that became objects, define() with case-insensitive constants, assert() with code in a string, preg_replace() with /e.Countable, ArrayAccess, Iterator, JsonSerializable and other PHP interfaces (8.1), utf8_encode() (8.2), strftime() (8.1), FILTER_SANITIZE_STRING (8.1), E_STRICT (8.4), CSV functions without the escape argument (8.4), curl_close() and imagedestroy() (8.5), the backtick operator and non-canonical casts (8.5) and others.function_exists(), extension_loaded() or defined(), or a plugin that ships its own replacement of a removed function — is shown as "guarded" and does not count against the plugin.
Your server
null passed to a PHP function or a property created on the fly. Such cases appear as deprecation notices in the PHP error log after the switch.
No. It only reads files. It does not switch PHP, does not edit plugins and does not execute their code.
Yes. Since 1.0.1 WooCommerce is a required plugin: WordPress activates PHP Upgrade Check only while WooCommerce is installed and active. The report marks the WooCommerce extensions and shows the PHP version WooCommerce needs.
Yes — that is what it is for. The scan runs on the PHP you have and reports for the version you choose.
No tool can promise that by reading code. "Ready" means nothing was found that the chosen PHP version breaks. Test the shop after the switch — the checkout above all — and keep a backup you can restore.
WordPress publishes which PHP versions each release supports; the plugin shows that next to your WordPress version.
Encoded files cannot be read. They run only on the PHP versions their encoder and the loader on the server support, so the report tells you to ask the vendor before the switch.