Re: leak()
| From: | Derick Rethans | Date: | Tue, 19 Nov 2002 21:47:01 +0000 |
| Subject: | Re: leak() | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91336@lists.php.net to get a copy of this message | ||
On Tue, 19 Nov 2002, Juerg Zgraggen wrote:
> hi derick
> thanx for answering...
>
> do i understand it right? this function is used for generating a memory leak
> which you want to test?
Yes it is.
> and whats about this function emalloc() ... i did not find it on php.net. i
> suppose it is used to alloc memory?
It's the Zend memory manager version of C's malloc(); this version will
dump errors when the script ends and it was not freed. This mechanism
can be tested with the PHP leak() function.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-