Re: [PHP-DEV] do_declare_property() From: Andi Gutmans (andi <email protected>)
Date: 07/12/00

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)
>{
> 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_?)

What is 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 <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>