]> granicus.if.org Git - php/commitdiff
Fix argument, cur_method_ref->class_name is a zend_string
authorHannes Magnusson <bjori@mongodb.com>
Tue, 6 May 2014 04:45:33 +0000 (21:45 -0700)
committerHannes Magnusson <bjori@mongodb.com>
Tue, 6 May 2014 04:45:33 +0000 (21:45 -0700)
Zend/zend_compile.c

index 65cbbc97093f2e60027cd094af86aa80701284fa..de62e9c43980c3db55f52b26cb1c7507d7848a18 100644 (file)
@@ -4240,7 +4240,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce TSRMLS_DC) /*
                                cur_method_ref = cur_precedence->trait_method;
                                if (!(cur_precedence->trait_method->ce = zend_fetch_class(cur_method_ref->class_name,
                                                                ZEND_FETCH_CLASS_TRAIT|ZEND_FETCH_CLASS_NO_AUTOLOAD TSRMLS_CC))) {
-                                       zend_error_noreturn(E_COMPILE_ERROR, "Could not find trait %s", cur_method_ref->class_name);
+                                       zend_error_noreturn(E_COMPILE_ERROR, "Could not find trait %s", cur_method_ref->class_name->val);
                                }
                                zend_check_trait_usage(ce, cur_precedence->trait_method->ce TSRMLS_CC);