[wp-trac] [WordPress Trac] #48693: Silence ini_set caused error or check if function_exists first
WordPress Trac
noreply at wordpress.org
Mon Nov 18 10:46:35 UTC 2019
#48693: Silence ini_set caused error or check if function_exists first
----------------------------+------------------------------
Reporter: drazon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+------------------------------
Comment (by drazon):
thank you for your reply, I can see the error suppression removal. Maybe
the `if ( function_exists( 'ini_set' ) )` is a more elegant way at this
point as it is being in other cases in the core.
Yes `ini_set()` is disabled at the php.ini `disable_functions`. I use PHP
7.3. The problem is that in production environments where
{{{
disable_functions = "ini_set, ....."
display_errors = 0
WP_DEBUG = false
}}}
the PHP error_log gets flooded with unnecessary warnings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48693#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list