Re: internal hashtables [patch included]

From: Date: Sun, 26 Oct 2003 23:36:00 +0000
Subject: Re: internal hashtables [patch included]
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5023@lists.php.net to get a copy of this message
"Andi Gutmans" <andi@zend.com> escreveu na mensagem news:5.1.0.14.2.20031026213148.03145288@127.0.0.1... > This doesn't look right. Shouldn't you make sure that module shutdown frees > the hashtables? You can change the dtor if you need. > I'm sorry but I don't quite understand what made you come up with this > solution. Maybe I'm missing something. Shure I can free the hashtable on module shutdown, but since the hashtable is inside a class definition(class constants), should I unregister the class too ? I just put this code because the current symtable only supports userland defined class constants. What is the good practice in developing PHP extensions ? Free all classes defined within an extension at module shutdown ? Best Regards, Cristiano Duarte

« previous php.internals (#5023) next »