static property setters

php.internals

George Schlossnagle

23 years ago
Andi, Zeev, Mind if I add #define ZEND_STATIC_PUBLIC_PROPERTY(class_ptr, name, value) \ { \ char *_name = (name); \ int namelen = strlen(_name); \ zend_declare_property(class_ptr, _name, namelen, value, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC); \ } macros to accomany the ZEND_*_PROPERTY macros? George -- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

Andi Gutmans

23 years ago
Hey, Actually I think it's better to just have ZEND_DEFINE_PROPERTY() and pass those flags as an argument. There's no added value in having all the possible permutations such as ZEND_PRIVATE_PROPERTY(), ZEND_PROTECTED_PROPERTY(), ZEND_PUBLIC_PROPERTY() and so on.. We're not really saving any typing here. I can't remember who commited it (and it might even be with my consent) but thinking of it now I think it should be reverted. Andi At 10:52 PM 20/7/2003 -0400, George Schlossnagle wrote: