From 2e0366aa4a05f378ebe906534685eb2ba1e9489b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 27 Aug 2004 09:02:26 +0000 Subject: [PATCH] Called as the part of the request (bug #20447) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167377 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../funchand/functions/register-shutdown-function.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/funchand/functions/register-shutdown-function.xml b/reference/funchand/functions/register-shutdown-function.xml index 8ed631b473..4b146b2a3f 100644 --- a/reference/funchand/functions/register-shutdown-function.xml +++ b/reference/funchand/functions/register-shutdown-function.xml @@ -1,5 +1,5 @@ - + @@ -28,11 +28,16 @@ shutdown functions will be called. - The registered shutdown functions are called after the request has been + In PHP 4.0.6 and earlier under Apache, + 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. + Since PHP 4.1, the shutdown functions are called as the part of the + request so that it's possible to send the output from them. There is + currently no way to process the data after the request has been + completed. As of PHP 4, it is possible to pass parameters to the shutdown function by