[wp-trac] [WordPress Trac] #55711: set_time_limit( 300 ); in Class WP_Upgrader causes crashes in PHP8 when hosting disables it

WordPress Trac noreply at wordpress.org
Thu May 12 22:02:30 UTC 2022


#55711: set_time_limit( 300 ); in Class WP_Upgrader causes crashes in PHP8 when
hosting disables it
-----------------------------+------------------------------
 Reporter:  theode           |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  5.9.3
 Severity:  critical         |  Resolution:
 Keywords:  php8             |     Focuses:  administration
-----------------------------+------------------------------

Comment (by jrf):

 Note: what about introducing a `wp_is_function_disabled( $function_name )`
 function (better names welcome) ?

 I know there are several places in the code base where function checks are
 being done as misinformed hosts have a tendency to disable those
 functions.

 Now might be good time to streamline those checks throughout the codebase
 to ensure the verification of the callability of the potentially disabled
 functions is done consistently.

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


More information about the wp-trac mailing list