]> granicus.if.org Git - php/commitdiff
Fix #68185 - Inconsistent insteadof definition
authorJulien Pauli <jpauli@php.net>
Wed, 29 Oct 2014 13:39:48 +0000 (14:39 +0100)
committerJulien Pauli <jpauli@php.net>
Fri, 21 Nov 2014 14:37:33 +0000 (15:37 +0100)
Zend/zend_compile.c

index bd3e1dd8131c7ed0e2e443c9f4db51da92dd0d97..6e1912803e6a53ad052a70c61d710b65f1b37f9f 100644 (file)
@@ -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",