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 >

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to