Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In PHP does max_execution_time affect shutdown functions that are run through a register_shutdown_function() call?

I have a shutdown function registered using register_shutdown_function() that takes a long time to complete. Will PHP's max_execution_time cause PHP to terminate this function or will it run until it completes or errors out?

like image 936
Joe Lencioni Avatar asked Oct 14 '22 18:10

Joe Lencioni


1 Answers

It will run to completion.

http://us2.php.net/manual/en/function.register-shutdown-function.php#33575

like image 125
profitphp Avatar answered Nov 15 '22 09:11

profitphp