Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注册了一个关机功能register_shutdown_function(),需要很长时间才能完成。PHPmax_execution_time会导致 PHP 终止这个函数还是会一直运行到它完成或出错?
register_shutdown_function()
max_execution_time
它将运行到完成。
http://us2.php.net/manual/en/function.register-shutdown-function.php#33575