cvs: Zend / zend_compile.c
| From: | Andi Gutmans | Date: | Sat, 29 Jun 2002 11:25:20 +0000 |
| Subject: | cvs: Zend / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-225@lists.php.net to get a copy of this message | ||
andi Sat Jun 29 07:25:20 2002 EDT
Modified files:
/Zend zend_compile.c
Log:
- Revert previous patch.
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.231 Zend/zend_compile.c:1.232
--- Zend/zend_compile.c:1.231 Sat Jun 29 04:37:59 2002
+++ Zend/zend_compile.c Sat Jun 29 07:25:20 2002
@@ -748,9 +748,7 @@
op_array.return_reference = return_reference;
if (is_method) {
- 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);
- }
+ zend_hash_update(&CG(active_class_entry)->function_table, name, name_len+1, &op_array,
sizeof(zend_op_array), (void **) &CG(active_op_array));
} else {
zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);