]> granicus.if.org Git - php/commitdiff
quick-n-dirty inheritance support for __handlers
authorStanislav Malyshev <stas@php.net>
Thu, 5 Sep 2002 17:34:16 +0000 (17:34 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 5 Sep 2002 17:34:16 +0000 (17:34 +0000)
Zend/zend_compile.c

index 4cf790a87c91d38c25e256932d99550fc0f6c044..34d3e87608ebf41aac1ce7781199551d7d0d7b01 100644 (file)
@@ -1503,6 +1503,9 @@ static void do_inherit_parent_constructor(zend_class_entry *ce)
                function_add_ref(function);
        }
        ce->constructor = ce->parent->constructor;
+       ce->__get = ce->parent->__get;
+       ce->__set = ce->parent->__set;
+       ce->__call = ce->parent->__call;
 }
 
 void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce)