From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version:      4.3.0
PHP Bug Type:     Output Control
Bug description:  register_shutdown_function output no compressed

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 bug report at http://bugs.php.net/?id=21294&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21294&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21294&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21294&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21294&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21294&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21294&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21294&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21294&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21294&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21294&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21294&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21294&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21294&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21294&r=gnused

Reply via email to