Re: Leaking references

From: Date: Tue, 03 Apr 2001 00:57:23 +0000
Subject: Re: Leaking references
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-50644@lists.php.net to get a copy of this message
hi, > I won't be holding my breath for it. That's the basic property of > reference-counting, so it's not easy to make it behave differently. > Anyway, unless you have very-long-running very-memory-greedy scripts, > these leaks shouldn't bother you - Zend memory manager cleans them up on > every request. i have hit on this issue while trying to make a sapi module. my problem was that memory emalloc-ed _before_ the request got efree-ed by the memory manager after the request and when i efree it afterwards a total memory mess occurs (sigsegv, infinite loop in libc free or something more nasty)... is there more info on exactly where emalloc tracks memory and when frees all unfreed blocks in the process of sapi_startup php_module_startup // memory alloced here gets freed by request_shutdown (i suppose) php_request_startup php_execute_script php_request_shutdown php_module_shutdown sapi_shutdown or i am missing something important? b.

« previous php.dev (#50644) next »