#19692 [Com]: register_shutdown_function documentation unclear about output
| From: | dchatenay at hotmail dot com | Date: | Fri, 20 Jun 2003 19:29:24 +0000 |
| Subject: | #19692 [Com]: register_shutdown_function documentation unclear about output | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354709@lists.php.net to get a copy of this message | ||
ID: 19692
Comment by: dchatenay at hotmail dot com
Reported By: asd at suespammers dot org
Status: Open
Bug Type: Documentation problem
Operating System: n/a
PHP Version: 4.2.3
New Comment:
I don't know how active this bug is. It looks related to bug #10447:
when you register a shutdown function, php used to release the
connection and execute the shutdown function in the background (thus
preventing you from sending any output obviously).
Now it looks like the execution of the shutdown function will keep
the connection alive, and you may output some information.
This is annoying since it used to work fine until recently, and I
can't find out what triggered this change in behaviour.
Previous Comments:
------------------------------------------------------------------------
[2002-10-01 10:04:42] asd at suespammers dot org
The register_shutdown_function documentation makes it sound like trying
to output to the web browser during a shutdown function is a no-op.
However, it seems that it isn't always. Sometimes the text goes out
fine; sometimes it goes out after, e.g., zlib compression, etc.
The documenation should probably be changed to state the behavior of
output done by a shutdown function is undefined, and strongly warn
against letting it happen.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19692&edit=1