Re: Persistent overloaded class registration problem,

From: Date: Wed, 24 Apr 2002 14:10:30 +0000
Subject: Re: Persistent overloaded class registration problem,
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-83259@lists.php.net to get a copy of this message
--- Sam Liddicott <sam.liddicott@ananova.com> wrote: > My overloaded classes are now registered in MINIT with: > > INIT_OVERLOADED_CLASS_ENTRY() > zend_register_internal_class() > ..zend_register_list_destructors_ex > > And all seems mostly fine; > > except the second time apache serves a request, one of the classes (!!) has > been de-registered! As shown by get_declared_classes() in the script. > > Swig is generating all the classes the same way so I'm asking if anyone > might know the cause for this. > emalloc will get rid of your memory on each requset.. if you use emalloc in the MINIT after the first request the memory will be free'd. use malloc for persistant memory. - Brad __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/

« previous php.dev (#83259) next »