Re: PHP4: php_module holds memory to long !

From: Date: Wed, 10 Jan 2001 19:21:19 +0000
Subject: Re: PHP4: php_module holds memory to long !
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43715@lists.php.net to get a copy of this message
BS>> the number of bytes contained in the Increment parameter and BS>> changes the amount of available space accordingly. The Increment BS>> parameter can be a negative number, in which case the amount of BS>> available space is decreased." Theoretically, you are right. Practically, you need first to clean that memory (i.e., not have malloc-ed blocks there), otherwise it would just drop dead. Given that standard malloc/free combo doesn't give you _any_ control on where blocks are allocated, you'll have hard time freeing top of your heep unless you free totally everything. If you really need that, use custom allocator. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.dev (#43715) next »