cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 23 Feb 2003 12:51:40 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-956@lists.php.net to get a copy of this message
zeev Sun Feb 23 07:51:40 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fixed abstract handling in inheritence Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.370 ZendEngine2/zend_compile.c:1.371 --- ZendEngine2/zend_compile.c:1.370 Thu Feb 20 14:01:51 2003 +++ ZendEngine2/zend_compile.c Sun Feb 23 07:51:40 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.370 2003/02/20 19:01:51 stas Exp $ */ +/* $Id: zend_compile.c,v 1.371 2003/02/23 12:51:40 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1580,14 +1580,14 @@ } -static void do_inherit_method(zend_function *function) +static void do_inherit_method(zend_function *function, zend_class_entry *ce) { /* The class entry of the derived function intentionally remains the same * as that of the parent class. That allows us to know in which context * we're running, and handle private method calls properly. */ if (function->common.fn_flags & ZEND_ACC_ABSTRACT) { - function->op_array.scope->ce_flags |= ZEND_ACC_ABSTRACT; + ce->ce_flags |= ZEND_ACC_ABSTRACT; } function_add_ref(function); } @@ -1669,7 +1669,7 @@ /* STATIC_MEMBERS_FIXME */ /* zend_hash_merge(ce->static_members, parent_ce->static_members, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *), 0); */ zend_hash_merge(&ce->constants_table, &parent_ce->constants_table, (void (*)(void *)) zval_add_ref, NULL, sizeof(zval *), 0); - zend_hash_merge_ex(&ce->function_table, &parent_ce->function_table, (copy_ctor_func_t) do_inherit_method, sizeof(zend_function), (merge_checker_func_t) do_inherit_method_check, NULL); + zend_hash_merge_ex(&ce->function_table, &parent_ce->function_table, (copy_ctor_func_t) do_inherit_method, sizeof(zend_function), (merge_checker_func_t) do_inherit_method_check, ce); do_inherit_parent_constructor(ce); }

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