cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 12 Jan 2003 18:57:18 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-805@lists.php.net to get a copy of this message
stas Sun Jan 12 13:57:18 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: fix inheritance Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.343 ZendEngine2/zend_compile.c:1.344 --- ZendEngine2/zend_compile.c:1.343 Sun Jan 12 12:16:07 2003 +++ ZendEngine2/zend_compile.c Sun Jan 12 13:57:18 2003 @@ -1537,9 +1537,15 @@ function_add_ref(function); } ce->constructor = ce->parent->constructor; - ce->__get = ce->parent->__get; - ce->__set = ce->parent->__set; - ce->__call = ce->parent->__call; + if (!ce->__get) { + ce->__get = ce->parent->__get; + } + if (!ce->__set) { + ce->__set = ce->parent->__set; + } + if (!ce->__call) { + ce->__call = ce->parent->__call; + } } @@ -1621,15 +1627,6 @@ zend_hash_merge(&ce->constants_table, &parent_ce->constants_table, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *), 0); zend_hash_merge_ex(&ce->function_table, &parent_ce->function_table, (copy_ctor_func_t) do_inherit_method, sizeof(zend_function), (zend_bool (*)(void *, void *)) do_inherit_method_check); ce->parent = parent_ce; - if (!ce->__get) { - ce->__get = parent_ce->__get; - } - if (!ce->__set) { - ce->__set = parent_ce->__set; - } - if (!ce->__call) { - ce->__call = parent_ce->__call; - } do_inherit_parent_constructor(ce); }

« previous php.zend-engine.cvs (#805) next »