Re: PHP 4.0 Bug #9223 Updated: recode_string leaks memory
| From: | Stanislav Malyshev | Date: | Thu, 08 Mar 2001 17:12:32 +0000 |
| Subject: | Re: PHP 4.0 Bug #9223 Updated: recode_string leaks memory | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-48285@lists.php.net to get a copy of this message | ||
SS>> That could also mean that the recode extension does not call
SS>> cleanup handlers of the recode library. In the
SS>> zlib/ob_gzhandler case that was the primary cause for the
SS>> huge memory leak.
The problem that it is leaking "in process", i.e. each call to
recode_string costs me some memory, allocated inside recode, and not freed
even after delete_request. I guess maybe the developers of recode wanted
to free it on delete_outer, but that would be strange. Otherwise, recode
extension works exactly like written in the recode manual.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115