vrana Fri Aug 27 05:02:27 2004 EDT
Modified files:
/phpdoc/en/reference/funchand/functions
register-shutdown-function.xml
Log:
Called as the part of the request (bug #20447)
http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/register-shutdown-function.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/funchand/functions/register-shutdown-function.xml
diff -u phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.7
phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.8
--- phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.7 Wed
Aug 18 12:15:20 2004
+++ phpdoc/en/reference/funchand/functions/register-shutdown-function.xml Fri
Aug 27 05:02:26 2004
@@ -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