RE: [PHP-DEV] Re: Constants and static methods for internal classes
| From: | Dmitry Stogov | Date: | Tue, 30 Aug 2005 16:56:59 +0000 |
| Subject: | RE: [PHP-DEV] Re: Constants and static methods for internal classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18569@lists.php.net to get a copy of this message | ||
Hi,
> -----Original Message-----
> From: Michael Wallner [mailto:mike@php.net]
> Sent: Tuesday, August 30, 2005 7:34 PM
> To: internals@lists.php.net
> Cc: Dmitry Stogov
> Subject: Re: [PHP-DEV] Re: Constants and static methods for
> internal classes
>
>
> Hi Dmitry Stogov, you wrote:
>
> > OK. Let me know if you will find any problems with patch.
>
> 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.
> 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.
Dmitry.