note 72604 added to function.register-shutdown-function
| From: | Ldkronos at osu1 dot php dot net | Date: | Thu, 25 Jan 2007 17:55:50 +0000 |
| Subject: | note 72604 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122202@lists.php.net to get a copy of this message | ||
It's already been discussed on the zlib page ( http://www.php.net/zlib ), but hasn't been mention here...
When zlib compression is enabled, register_shutdown_function doesn't work properly. Anything
output from your shutdown function will not be readable by the browser. Firefox just ignores it. IE6
will show you a blank page.
The workaround that worked for me is to add the following to the top of the script.
ini_set('zlib.output_compression', 0);
----
Server IP: 190.74.132.41
Probable Submitter: 141.215.64.101
----
Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php
Edit -- https://master.php.net/note/edit/72604
Del: integrated -- https://master.php.net/note/delete/72604/integrated
Del: useless -- https://master.php.net/note/delete/72604/useless
Del: bad code -- https://master.php.net/note/delete/72604/bad+code
Del: spam -- https://master.php.net/note/delete/72604/spam
Del: non-english -- https://master.php.net/note/delete/72604/non-english
Del: in docs -- https://master.php.net/note/delete/72604/in+docs
Del: other reasons-- https://master.php.net/note/delete/72604
Reject -- https://master.php.net/note/reject/72604
Search -- https://master.php.net/manage/user-notes.php