[wp-trac] [WordPress Trac] #55257: map_deep() function incompatibility with incomplete objects in PHP 8.0+
WordPress Trac
noreply at wordpress.org
Thu Feb 23 22:54:46 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.2
Component: Formatting | Version: 5.9.1
Severity: major | Resolution:
Keywords: has-patch php8 has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Changes (by azaozz):
* keywords: has-patch php8 has-unit-tests => has-patch php8 has-unit-tests
2nd-opinion
Comment:
> Incomplete objects (`__PHP_Incomplete_Class`) used to have no issues
with `map_deep()` before PHP 8.0 because it ignores any incomplete object.
With PHP 8.0 - this now returns fatal error
The question here, imho, is whether the fatal error in PHP 8.0 is a
"feature" or should it be considered a bug :)
If it is a feature, perhaps it shouldn't be prevented when `WP_DEBUG` is
true. An incomplete class definitely means something's wrong, right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55257#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list