php register_shutdown_function
2011-03-17 14:47
429 查看
官方描述:
void register_shutdown_function ( callback $function [, mixed $parameter [, mixed $...]] )
Registers the function named by function to be executed when script processing is complete or when exit() is called.
Multiple calls to register_shutdown_function() can be made, and each will be called in the same order as they were registered. If you call exit() within one registered shutdown function, processing will stop completely and no other registered shutdown functions will be called.
register_shutdown_function(do_exit());
function do_exit()
{
echo "goodbye,my boys.";
}
exit("oh,my lady gaga!");
这样执行exit前自动调用do_exit方法
void register_shutdown_function ( callback $function [, mixed $parameter [, mixed $...]] )
Registers the function named by function to be executed when script processing is complete or when exit() is called.
Multiple calls to register_shutdown_function() can be made, and each will be called in the same order as they were registered. If you call exit() within one registered shutdown function, processing will stop completely and no other registered shutdown functions will be called.
register_shutdown_function(do_exit());
function do_exit()
{
echo "goodbye,my boys.";
}
exit("oh,my lady gaga!");
这样执行exit前自动调用do_exit方法
相关文章推荐
- php中register_shutdown_function 函数详解
- PHP错误处理函数register_shutdown_function
- 利用PHP的register_shutdown_function来记录PHP的输出日志,模拟析构函数
- PHP register_shutdown_function()函数的使用示例
- 利用php的register_shutdown_function来记录php的输出日志
- php中__destruct与register_shutdown_function执行的先后顺序问题
- PHP中非期望致命错误的另一种处理方式:register_shutdown_function()
- PHP register_shutdown_function() 函数
- php register_shutdown_function响应error 配合error_get_last 捕获错误
- 利用php的register_shutdown_function来记录php的输出日志
- PHP - Manual手册 - XLVII. Function Handling Functions函数管理函数 - register_shutdown_function注册一个脚本结束时调用的函数
- php ignore_user_abort与register_shutdown_function 使用方法
- php 快速定位代码错误、异常之register_shutdown_function()函数学习
- 妙用php中的register_shutdown_function和fastcgi_finish_request
- php register_shutdown_function
- PHP之register_shutdown_function方法
- PHP ignore_user_abort 与 connection_status 与 register_shutdown_function 使用方法
- 如何使用register_shutdown_function()捕获PHP致命错误?
- 使用register_shutdown_function实现php项目脚本执行失败的实时报警
- php中通过register_shutdown_function记录fatal error