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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It will run to completion.
http://us2.php.net/manual/en/function.register-shutdown-function.php#33575