From 6efe3809a490539d062115556814814c47570252 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Tue, 18 Dec 2001 19:55:26 +0000 Subject: [PATCH] register_shutdown_function: incorporate user notes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65613 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/funchand.xml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/functions/funchand.xml b/functions/funchand.xml index b71dc98e44..3864ecdd2d 100755 --- a/functions/funchand.xml +++ b/functions/funchand.xml @@ -1,5 +1,5 @@ - + Function Handling functions Functions @@ -575,15 +575,23 @@ Array Registers the function named by func to be - executed when script processing is complete. - - Common Pitfalls: - - - Since no output is allowed to the browser in this function, you - will be unable to debug it using statements such as print or - echo. + executed when script processing is complete. + + 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. + + + The registered shutdown functions are called after the request has been + completed (including sending any output buffers), so it is not possible + to send output to the browser using echo or + print, or retrieve the contents of any output + buffers using ob_get_contents. + + ¬e.func-callback;