r/WordpressPlugins • u/Nico-Salinas • 9h ago
Free [FREE] PHP 8.6 is out: I scanned the 25 most-installed plugins for it. Nothing breaks, but 61 new deprecation notices
PHP 8.6 was released on November 19 and WordPress 7.2 (December 8) adds full support for it. Hosts will start offering it soon, so I added it as a target to my free plugin, Upgravo, and ran it against the 25 most-installed plugins on WordPress.org (about 26,400 PHP files).
What I found for PHP 8.6:
- Nothing that breaks a site. Zero fatal-level findings that weren't already there on PHP 8.4.
61 new deprecation notices. The three most common:
spl_object_hash()is deprecated (usespl_object_id(), which returns an int, not a string)- returning a value from
__construct()is deprecated (it was always ignored anyway) - the
is_integer()/is_double()/doubleval()aliases are deprecated
- Some hits were in code that never runs on modern PHP (Symfony's polyfill for PHP 7.2 uses
spl_object_hash()), so the scanner now hides those instead of scaring you.
Deprecations don't stop your site, but they fill your error log and they become real errors in PHP 9.
Upgravo runs entirely on your server: no external service, no exec(), works on shared hosting. You pick the PHP version you want to move to and it tells you, plugin by plugin, what breaks, what's just a notice, and (for the common cases) how to fix it with a before/after example. The screenshot is a real scan of a test site going from PHP 8.5 to 8.6.
https://wordpress.org/plugins/upgravo/
Disclosure: I built it. Feedback on false positives is very welcome. A comment on my last post here led to a fix in how it detects if ( function_exists() ) guards.
