[wp-trac] [WordPress Trac] #57248: Adding a disable_functions test for set_time_limit function.

WordPress Trac noreply at wordpress.org
Thu Dec 1 18:27:08 UTC 2022


#57248: Adding a disable_functions test for set_time_limit function.
-------------------------------------------+-----------------------------
 Reporter:  zeleny                         |      Owner:  (none)
     Type:  defect (bug)                   |     Status:  new
 Priority:  normal                         |  Milestone:  Awaiting Review
Component:  General                        |    Version:  trunk
 Severity:  critical                       |   Keywords:  has-patch
  Focuses:  performance, coding-standards  |
-------------------------------------------+-----------------------------
 There is a lots of shared hosting servers, which one has disabled
 set_time_limit function by php.ini. So usually that makes problems with
 updating and maintaining the WordPress.

 I've made a if test for all set_time_limit I've found at the source, so
 they do not trigger if that function is disabled by php.ini.

 {{{#!php
 <?php
 if (strpos(ini_get('disable_functions'), 'set_time_limit') === 0){
     set_time_limit($some_time);
 }
 }}}

 https://github.com/jokerrs/wordpress-
 develop/commit/bfb135be80d8e86467f6052856cfdac25014b3b1

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57248>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list