]> granicus.if.org Git - php/commitdiff
move decl to correct place
authorJoe Watkins <krakjoe@php.net>
Mon, 23 Jan 2017 05:33:58 +0000 (05:33 +0000)
committerJoe Watkins <krakjoe@php.net>
Mon, 23 Jan 2017 05:33:58 +0000 (05:33 +0000)
Zend/zend_builtin_functions.c

index 8f77eb4f6d10c58cb2c1fb14fef1f15f7e1fe3b4..547d3f0b8faec05e8462a9ac54c742c255daef57 100644 (file)
@@ -2364,8 +2364,9 @@ ZEND_FUNCTION(debug_print_backtrace)
                object = Z_OBJ(call->This);
 
                if (call->func) {
-                       func = call->func;
                        zend_string *zend_function_name;
+
+                       func = call->func;
             if (func->common.scope && func->common.scope->trait_aliases) {
                 zend_function_name = zend_resolve_method_name(object ? object->ce : func->common.scope, func);
             } else {