Re: Problem destroying class constants

From: Date: Sun, 05 Oct 2003 17:15:17 +0000
Subject: Re: Problem destroying class constants
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-98@lists.php.net to get a copy of this message
"Cristiano Duarte" <cunha17@uol.com.br> escreveu na mensagem news:20031004233324.87451.qmail@pb1.pair.com... > "Marcus BöRger" <mail@marcus-boerger.de> escreveu na mensagem > news:165216787375.20031005001839@marcus-boerger.de... > > Ye, constants are only supported for user classes and noone is working > > on it at the moment. > > "Moriyoshi Koizumi" <moriyoshi@at.wakwak.com> escreveu na mensagem > news:20031005081950iuHFnj@at.wakwak.com... > > I'm not sure why, but maybe Zeev or Andi will fix it, as the relevant part > > is told to be so sensitive that I cannot do with it in a way fine with > > them. > Hi Marcus & Moriyoshi, > > Thanx for the quick answer. > But can I manually destroy the hashtable before the engine gets to it ? Is > there any kind of "event" triggered before the cleanup process ? > Maybe I could create a "Internal Hashtable Factory" that will cleanup the > hashtable correctly before the engine cleanup process. Is it possible? IMHO, > I think that this aproach has almost no impact in the engine... In fact I added some functions to zend_hash.c that are capable of storing internal HashTables and destroying them. Then I modified TSRM.c (tsrm_shutdown) to call the internal HashTables destroy function and it worked !!! No more memory leaks nor segmentation faults !!! Is this approach OK ? Cristiano Duarte

« previous php.pecl.dev (#98) next »