From: Julien Pauli Date: Wed, 29 Oct 2014 13:39:48 +0000 (+0100) Subject: Fix #68185 - Inconsistent insteadof definition X-Git-Tag: php-5.5.20RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd3b46f28af49e5eaaa687d5d186e641ce147853;p=php Fix #68185 - Inconsistent insteadof definition --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index bd3e1dd813..6e1912803e 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4116,7 +4116,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce TSRMLS_DC) /* /* make sure that the trait method is not from a class mentioned in exclude_from_classes, for consistency */ - if (cur_precedence->trait_method->ce == cur_precedence->exclude_from_classes[i]) { + if (cur_precedence->trait_method->ce == cur_precedence->exclude_from_classes[j]) { zend_error(E_COMPILE_ERROR, "Inconsistent insteadof definition. " "The method %s is to be used from %s, but %s is also on the exclude list",