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

WordPress Trac noreply at wordpress.org
Fri Sep 13 19:38:25 UTC 2024


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

 * severity:  major => normal


Comment:

 @maltfield I understand you are frustrated, but that doesn't mean WP
 should work around every silly thing hosters can do. Disabling `ini_set`
 is not a good practice and is a form of "fake security", not real
 security. If WP would need to work around that, the same could be argued
 for literally every single function call to a PHP native function as they
 could all be disabled.

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


More information about the wp-trac mailing list