Re: Re: Constants and static methods for internal classes
| From: | Michael Wallner | Date: | Tue, 30 Aug 2005 11:06:23 +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-18559@lists.php.net to get a copy of this message | ||
Hi Dmitry Stogov, you wrote:
> Static members works with this patch (except array and constant properties)
> without any additional requirements for extension. See test extension in
> first email. Developer should just call zend_declare_property_...() or
> zend_declare_class_constant_...() in MINIT (no any special allocation,
> initialization, destruction and freeing are required).
Sorry, I missed that the default properties will be copied to
the static_members table in zend_update_class_constants().
> To support arrays and constants API should be extended with
[...]
> Do we need this?
I don't think so, and never requested that functionality.
> We already have zend_declare_property_...() those are good enough to declare
> both static and non-static properties.
Sorry, see first comment.
> Why we need new functions?
In case of zend_update_static_property(), because one would need
to replicate the body of that function at each writing access?
Regards,
--
Michael - < mike(@)php.net >