[wp-trac] [WordPress Trac] #52226: PHP 8 issue: Fatal error when error_reporting is disabled
WordPress Trac
noreply at wordpress.org
Tue Jan 5 03:36:50 UTC 2021
#52226: PHP 8 issue: Fatal error when error_reporting is disabled
--------------------------+-----------------------------
Reporter: fijisunshine | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version: 5.6
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I had posted this in the Support > Everything else WordPress forum and the
moderator, James Huff, asked me to create a ticket with you.
For security reasons, I've always disabled the function "error_reporting"
in php.ini unless I'm debugging. Disabling this function works great in
php 7.4 – WordPress doesn't output error messages to the error log, it
just outputs a message to the error log that error_reporting is disabled
for security reasons.
But in php 8.0, I'm getting this error:
PHP Fatal error: Uncaught Error: Call to undefined function
error_reporting() in … /wp-load.php:24
In php 7.4, it wouldn't be a fatal error. It would just say that
error_reporting is disabled for security reasons.
Can you update WordPress so that it won't have fatal errors when
error_reporting is disabled in php.ini for security reasons? Thank you
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list