ID: 21294 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Verified +Status: Bogus Bug Type: Output Control Operating System: Linux 2.4.18 PHP Version: 4.3.3RC2-dev New Comment:
Actually this is normal: "The registered shutdown functions are called after the request has been completed (including sending any output buffers), so it is not possible to send output to the browser using echo() or print(), or retrieve the contents of any output buffers using ob_get_contents(). " (what did you mean by "register_shutdown_function now allow output" anyway? Since when does it allow output??) 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