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
This commit is contained in:
Jakub Vrana 2004-08-27 09:02:26 +00:00
parent ad33a4cbb8
commit 2e0366aa4a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 -->
<refentry id="function.register-shutdown-function">
<refnamediv>
@ -28,11 +28,16 @@
shutdown functions will be called.
</para>
<para>
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 <function>echo</function> or
<function>print</function>, or retrieve the contents of any output
buffers using <function>ob_get_contents</function>.
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.
</para>
<para>
As of PHP 4, it is possible to pass parameters to the shutdown function by