Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c

From: Date: Sat, 29 Jun 2002 10:29:15 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-220@lists.php.net to get a copy of this message
On Sat, Jun 29, 2002 at 08:37:59AM -0000, Andi Gutmans wrote: > andi Sat Jun 29 04:37:59 2002 EDT > > Modified files: > /Zend zend_compile.c > Log: > - Fix for bug 17882 > so overwriting method is no longer allowd? <? class a { function test() { } } class b extends a { function test() { } } ?> am i missing somthing? tc > > Index: Zend/zend_compile.c > diff -u Zend/zend_compile.c:1.230 Zend/zend_compile.c:1.231 > --- Zend/zend_compile.c:1.230 Sun May 19 02:04:07 2002 > +++ Zend/zend_compile.c Sat Jun 29 04:37:59 2002 > @@ -748,7 +748,9 @@ > op_array.return_reference = return_reference; > > if (is_method) { > - zend_hash_update(&CG(active_class_entry)->function_table, name, name_len+1, > &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); > + if (zend_hash_add(&CG(active_class_entry)->function_table, name, name_len+1, > &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)) == FAILURE) { > + zend_error(E_COMPILE_ERROR, "Multiply defined method '%s'", name); > + } > } else { > zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); > > > > > -- > Zend Engine CVS Mailing List (http://cvs.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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