Re: Re: Constants and static methods for internal classes

From: Date: Wed, 31 Aug 2005 08:56:32 +0000
Subject: Re: Re: Constants and static methods for internal classes
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-18596@lists.php.net to get a copy of this message
Hi Dmitry Stogov, you wrote: >>There's a typo in zend_update_class_constants(): >> ALLOC_HASHTABLE() refers to class_type instead of >>class_type->static_members > > Seems you are wrong. > I see ALLOC_HASHTABLE(class_type->static_members); in the patch. Sorry my fault while applying the patch. >>There's also a problem which I didn't track down yet: >> static_members are destroyed after the request but not reinitialized > > > The are reinicilized on next access through the same > zend_update_class_constants() from default values. But zend_update_class_constants() will only take effect once for internal classes, while the static_members need to be updated/reset for every request? Thanks, -- Michael - < mike(@)php.net >

« previous php.internals (#18596) next »