From: Michael Wallner
Sent: Tuesday, August 30, 2005 1:56 PM
To: email@example.com; Dmitry Stogov
Cc: firstname.lastname@example.org; Andi Gutmans
Subject: [PHP-DEV] Re: Constants and static methods for
Hi Dmitry Stogov, you wrote:
The patch is maden for "easiest" usage and it doesn't
array/constants properties (they weren't supported before).
So why burden the weigh of allocation, initialization,
destruction and freeing on the extension developer? This
will force every extension writer to implement a kind of my
dup_zval() function, wouldn't it?
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).
To support arrays and constants API should be extended with
Do we need this?
And as there's not much
reference devs will spam the list on how to use static
properties right. I think we could avoid this by stretching
the minimalistic approach a bit and provide at least a
We already have zend_declare_property_...() those are good enough to declare
both static and non-static properties.
Why we need new functions?
Thanks a lot,
Michael - < mike(@)php.net >
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php