cvs: Zend / zend_compile.c

From: Date: Sat, 29 Jun 2002 08:37:59 +0000
Subject: cvs: Zend / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-217@lists.php.net to get a copy of this message
andi Sat Jun 29 04:37:59 2002 EDT Modified files: /Zend zend_compile.c Log: - Fix for bug 17882 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);

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