Re: do_declare_property()
| From: | Andi Gutmans | Date: | Wed, 12 Jul 2000 04:24:12 +0000 |
| Subject: | Re: do_declare_property() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24258@lists.php.net to get a copy of this message | ||
At 01:13 AM 7/12/00 +0200, Mathieu Kooiman (ggInternet) wrote:
Heh, well I think you can guess the way I implemented it.. I introduced private_properties to zend_class_entry in do_declare_property(): void do_declare_property(znode *var_name, znode *value CLS_DC) {What is completely copied?HashTable *dest_ht; if (var_name->op_type == ZEND_DECLARE_PRIVATE_PROPERTY) dest_ht = &CG(active_class_entry)->private_properties; else dest_ht = &CG(active_class_entry)->default_properties;... ectera ...} and zend_fetch_property_address, now passes the complete container rather than just container->value.obj.properties (Btw, why is this completely _copied_?)
When fetching the property, if it can't find in the properties hashtable, it looks in the private_properties hashtable, if it does find them.. it checks calling_symbol_table 'n stuff yada yada..See previous Email :) Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/