#21294 [Opn->Ver]: register_shutdown_function output no compressed
| From: | sniper@php.net | Date: | Tue, 15 Jul 2003 22:47:47 +0000 |
| Subject: | #21294 [Opn->Ver]: register_shutdown_function output no compressed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44067@lists.php.net to get a copy of this message | ||
ID: 21294
Updated by: sniper@php.net
Reported By: brianlmoon@php.net
-Status: Open
+Status: Verified
Bug Type: Output Control
Operating System: Linux 2.4.18
-PHP Version: 4.3.0
+PHP Version: 4.3.3RC2-dev
Previous Comments:
------------------------------------------------------------------------
[2002-12-30 12:06:55] brianlmoon@php.net
register_shutdown_function now allow output. However, this output is
not compressed by zlib.output_compression. It must be sent after the
output buffer is flushed. Mozilla will casually truncate the invalid
parts. However, IE will unpredictably stop loading the page and will
sometimes not load the page at all.
In the below example, the output from the function shutdown_test will
not be compressed. You can see the test for yourself at
http://dev.phorum.org/zlibtest.php
<?php
register_shutdown_function("shutdown_test");
?>
<html>
<head>
<title></title>
</head>
<body bgcolor="#ffffff" leftmargin="8" topmargin="8"
marginheight="8"
marginwidth="8">
This is in the HTML body.
</body>
</html>
<?php
function shutdown_test()
{
echo "This is the shutdown function.";
}
?>
To see the raw output, You can try:
# wget -O - --header='Accept-Encoding: gzip'
http://dev.phorum.org/zlibtest.php | less
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21294&edit=1