[wp-trac] [WordPress Trac] #55257: map_deep() function incompatibility with incomplete objects in PHP 8.0+
WordPress Trac
noreply at wordpress.org
Thu Mar 2 02:59:49 UTC 2023
#55257: map_deep() function incompatibility with incomplete objects in PHP 8.0+
-------------------------------------------------+-------------------------
Reporter: codex-m | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Formatting | Version: 5.9.1
Severity: major | Resolution:
Keywords: has-patch php8 has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by codex-m):
Thanks guys for all the inputs. Yes, this can happen when we update
settings for plugins / themes that are no longer active. A case example is
when a plugin do mass updating user or post meta to update something in dB
for maintenance purposes (using core functions).
And then we have these settings in dB for plugins / themes that no longer
exist (so their class definition is incomplete). This updating will
complete with PHP 7.4 and below but now breaks with PHP 8.0+. The updating
will not be completed.
Yes, I agree that with PHP 8.0 handling makes this error more visible
(because of fatal error). I added this ticket because I think it would
help WordPress become more backward compatible with PHP 8.0. This is just
a suggestion :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55257#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list