Re: do_declare_property()

From: Date: Tue, 11 Jul 2000 23:13:22 +0000
Subject: Re: do_declare_property()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24242@lists.php.net to get a copy of this message
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) { 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.. CaPS

« previous php.dev (#24242) next »