在PHP中,max_execution_time是否会影响通过register_shutdown_function()调用运行的关机功能? [英] In PHP does max_execution_time affect shutdown functions that are run through a register_shutdown_function() call?

查看:111
本文介绍了在PHP中,max_execution_time是否会影响通过register_shutdown_function()调用运行的关机功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用register_shutdown_function()注册的关机功能,需要很长时间才能完成. PHP的max_execution_time会导致PHP终止此功能,还是会一直运行直到完成或出现错误?

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?

推荐答案

它将运行完成.

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

这篇关于在PHP中,max_execution_time是否会影响通过register_shutdown_function()调用运行的关机功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆