[wp-trac] [WordPress Trac] #61873: Check if error_reporting function exists, otherwise breaks php8 installs when disabled in the ini config
WordPress Trac
noreply at wordpress.org
Thu Aug 15 13:54:14 UTC 2024
#61873: Check if error_reporting function exists, otherwise breaks php8 installs
when disabled in the ini config
----------------------------+------------------------------
Reporter: gansbrest | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+------------------------------
Comment (by gansbrest):
Agree with all of you that disabling `error_reporting` is definitely not
the most common practice, but I've seen more than a few cases where it's
in fact disabled.
In addition to that it's actually pretty convenient way to precisely
control `error_reporting` via `ini` config in one place vs chasing
`error_reporting` declarations across different modules.
Personally I don't see a harm if we add couple additional
`function_exists` checks in the core, since we already did it for the `wp-
load.php`, but open to other suggestions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61873#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list