zlib + register_shutdown_function
| From: | Brian Moon | Date: | Mon, 23 Dec 2002 17:32:47 +0000 |
| Subject: | zlib + register_shutdown_function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-92790@lists.php.net to get a copy of this message | ||
I just put a comment on the register_shutdown_function bug, but I am not
sure if comments go to the list or not. Here was the comment:
--------------------------------------------------------------
The following script will cause IE to stop loading the page when
zlib.output_compression is used. This was not true before the changes
to register_shutdown_function as the output was not sent.
You can see a test at http://dealnews.com/zlibshutdown.php. Mozilla
gracefully handles the mixed output by truncating the non-compressed
data.
================================
<?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.
<?php
function shutdown_test()
{
echo "This is the shutdown function.";
}
?>
</body>
</html>