ID: 21294 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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