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

时光总嘲笑我的痴心妄想 提交于 2019-12-10 14:49:40

问题


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



来源:https://stackoverflow.com/questions/4620517/in-php-does-max-execution-time-affect-shutdown-functions-that-are-run-through-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!