Internal properties
| From: | Andrei Zmievski | Date: | Thu, 22 Jul 2004 06:01:30 +0000 |
| Subject: | Internal properties | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-11456@lists.php.net to get a copy of this message | ||
Hi,
I saw this in zend_opcode.c zend_cleanup_class_data():
/* Note that only run-time accessed data need to be cleaned up,
* pre-defined data can not contain objects and thus are not probelmatic */
Which lead me to look into zend_declare_property() and I noticed that
you cannot declare properties that are objects/arrays/resources. Is
there a good reason for disallowing extension authors to do that?
Alternatively, do you suggest using zend_hash_update() on class
properties even though I really need this property to be static so its
shared by all instances of the class?
-Andrei
* Unix is user friendly, it is just chooses its users selectively. *