[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
Fri Aug 16 13:37:35 UTC 2024
#61873: Check if error_reporting function exists, otherwise breaks php8 installs
when disabled in the ini config
----------------------------+-----------------------------
Reporter: gansbrest | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.7
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => accepted
* milestone: Awaiting Review => 6.7
Comment:
Replying to [comment:5 gansbrest]:
> If we look inside of the `load-styles/scripts.php` files (see my
[https://github.com/WordPress/wordpress-develop/pull/7197 pull request]
above) we can notice that error_reporting is called before `wp-config.php`
is initialized (hence the need for the PR).
Ah yes, I missed that, thanks for clarifying! The PR makes sense to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61873#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list