cvs: ZendEngine2 / zend_compile.c
| From: | Antony Dovgal | Date: | Tue, 06 Jun 2006 14:16:53 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4979@lists.php.net to get a copy of this message | ||
tony2001 Tue Jun 6 14:16:53 2006 UTC
Modified files:
/ZendEngine2 zend_compile.c
Log:
revert by Andi's request
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.713&r2=1.714&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.713 ZendEngine2/zend_compile.c:1.714
--- ZendEngine2/zend_compile.c:1.713 Tue Jun 6 10:02:28 2006
+++ ZendEngine2/zend_compile.c Tue Jun 6 14:16:53 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.713 2006/06/06 10:02:28 tony2001 Exp $ */
+/* $Id: zend_compile.c,v 1.714 2006/06/06 14:16:53 tony2001 Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -2382,17 +2382,6 @@
ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC)
{
- zend_uint i, if_num = ce->num_interfaces, cnt = 0;
-
- for (i = 0; i < if_num; i++) {
- if (ce->interfaces[i] != NULL && ce->interfaces[i]->name_length ==
iface->name_length && !memcmp(ce->interfaces[i]->name.v, iface->name.v,
UG(unicode)?UBYTES(iface->name_length):iface->name_length)) {
- cnt++;
- if (cnt > 1) {
- zend_error(E_COMPILE_ERROR, "Cannot implement previously implemented interface %v",
iface->name);
- }
- }
- }
-
zend_hash_merge_ex(&ce->constants_table, &iface->constants_table, (copy_ctor_func_t)
zval_add_ref, sizeof(zval *), (merge_checker_func_t) do_inherit_constant_check, iface);
zend_hash_merge_ex(&ce->function_table, &iface->function_table, (copy_ctor_func_t)
do_inherit_method, sizeof(zend_function), (merge_checker_func_t) do_inherit_method_check, ce);