Re: Output Compression & output buffering..
| From: | Eric Pignot | Date: | Tue, 27 Aug 2002 02:44:49 +0000 |
| Subject: | Re: Output Compression & output buffering.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114213@lists.php.net to get a copy of this message | ||
Hi Gerard,
I never had any problem using output buffering...
Do you correctly dump the buffer when an error occurs ? I suppose you have
built your own error() function, a bit like this one :
exit_on_error($msg){
ob_end_clean();
echo $msg;
exit();
}
can you tell us a bit more concerning the way you handle the exit of your
program ?
regards
Eric
"Gerard Samuel" <gsam@trini0.org> a écrit dans le message de news:
3D6AB911.6010001@trini0.org...
> In an included file, I have an error handler that is using the 'output
> buffering' trick to
> dump a page in progress to display the error page.
> I also happened to have a switch to turn on output compression.
> When output compression is on, if an error is comitted while the page is
> displaying, I get an empty page,
> instead of the expected error page or the page hangs, depending on the
> browser.
>
> Has anyone gotten both forms of output control to work together without
> ill side effects??
>
> Thanks
>
> --
> Gerard Samuel
> http://www.trini0.org:81/
> http://dev.trini0.org:81/
>
>