]> granicus.if.org Git - php/commitdiff
Drop doubled check
authorMarcus Boerger <helly@php.net>
Thu, 26 Aug 2004 22:32:38 +0000 (22:32 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 26 Aug 2004 22:32:38 +0000 (22:32 +0000)
Zend/zend_compile.c

index 29c08e7d3b271d402f2d0271eb3cde2133d188c1..2c1faddc573b2efcbce8763f61a01f9086ce5145 100644 (file)
@@ -999,7 +999,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
                        zend_str_tolower_copy(short_class_name, CG(active_class_entry)->name, short_class_name_length);
                        /* Improve after RC: cache the lowercase class name */
 
-                       if ((short_class_name_length == name_len) && (!memcmp(short_class_name, lcname, name_len)) && !(CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE)) {
+                       if ((short_class_name_length == name_len) && (!memcmp(short_class_name, lcname, name_len))) {
                                if (CG(active_class_entry)->constructor) {
                                        zend_error(E_STRICT, "Redefining already defined constructor for class %s", CG(active_class_entry)->name);
                                } else {