Registers a callback to be executed after script execution finishes or exit() is called. Multiple calls to register_shutdown_function() can be made, and each. PHP tutorial: register-shutdown-function function. Registers a callback to be executed after script execution finishes or exit() is called. Registers the function named by function to be executed when script processing is complete. Multiple calls to register_shutdown_function() can be made, and each. Use registerShutdownFunction Loading branch information. 1 parent 2675387 commit 429b1c06866bff2458b4d011baa59690a9012997 jenssegers committed. register_shutdown_function (PHP 4, PHP 5, PHP 7) register_shutdown_function — Register a function for execution on shutdown The registerShutdownFunction() function assigns the pointer to your plug-in function. For example, to declare a shutdown function, use the following: PHP¶ The PHP SDK for Sentry supports PHP 5.3 and higher. It’s available as a BSD licensed Open Source library. This is actually a pretty simple function. So you have a php script: ?php echo Here is my little script ; function endScript() echo My little Script has. register-shutdown-function PHP reference manual with full description and examples. ★用 registershutdownfunction 对程序中的的错误进行处理★解决方案,解决方法,BUG处理,异常处理,怎么办?怎么弄?如何处理?如何解决.