[wp-trac] [WordPress Trac] #48693: Silence ini_set caused error or check if function_exists first

WordPress Trac noreply at wordpress.org
Thu Jan 16 15:28:56 UTC 2020


#48693: Silence ini_set caused error or check if function_exists first
-------------------------------------+-----------------------------
 Reporter:  drazon                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.3.3
Component:  Bootstrap/Load           |     Version:  5.3
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+-----------------------------

Comment (by autotutorial):

 No less need to be collected in error_log (since the suppression operator
 @ temporarily sets error_reporting to 0).
 {{{#!php
 <?php
 error_reporting(0);
 ini_set( 'display_errors', 1);
 if( ! ini_set( 'display_errors', 1) {
 // not work
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48693#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list