PHP 4.0 Bug #9030: Serious memory leak with ob_gzhandler
| From: | del at doofer dot org | Date: | Wed, 31 Jan 2001 13:44:39 +0000 |
| Subject: | PHP 4.0 Bug #9030: Serious memory leak with ob_gzhandler | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45451@lists.php.net to get a copy of this message | ||
From: del@doofer.org
Operating system: Linux kernel 2.2.x, RH 6.2 and RH 7.0
PHP version: 4.0.4pl1
PHP Bug Type: Zlib Related
Bug description: Serious memory leak with ob_gzhandler
I have noticed a that a serious memory leak is occuring with PHP when using the ob_gzhandler. It is
noticable very quickly after starting Apache and reloading a few pages, the process size goes up
dramatically - much more than if PHP is configured NOT to use the ob_gzhandler, which is I think
when the Zend optimizer caches pages. Merely having support compiled in does not cause the effect.
I have mod_ssl configured with:
--with-layout=Del --with-apache=../apache --with-ssl=../openssl --with-mm=../mm
--activate-module=src/modules/php4/libphp4.a --activate-module=src/modules/extra/mod_gzip.c
PHP compiled with:
--with-apache=../apache --enable-trans-sid --with-my-sql --with-zlib --with-mcrypt
And then Apache is made with those options that mod_ssl configures it with. Using Zend optimizer
1.0.0 for PHP4.0.4.
Despite the numerous different modules that are compiled into Apache, I feel it is with the
ob_gzhandler that the problem lies as deactivating it seems to make the problem go away.
--
Edit Bug report at: http://bugs.php.net/?id=9030&edit=1