ob_gzhandler memory leak + readfile not working
| From: | Ivan Petrovic | Date: | Sat, 27 Jan 2001 14:03:53 +0000 |
| Subject: | ob_gzhandler memory leak + readfile not working | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45128@lists.php.net to get a copy of this message | ||
Problems with php4.04pl1
Adding this line to php.ini is not enough:
output_handler = ob_gzhandler ;
I had to add:
header("Content-Encoding: gzip");
to PHP files. Then it worked. It is really nice feature and it speeds things
up. But the problem is, as some of you already reported, there is huge
memory leak. I hope it will be fixed soon.
Another thing:
When using gzipped output, it is impossible to use readfile(). Maybe this
function is not using cached output at all?
Regards
Ivan