static void zend_begin_func_decl(znode *result, zend_op_array *op_array, zend_ast_decl *decl) /* {{{ */
{
zend_ast *params_ast = decl->child[0];
- zend_string *name = decl->name, *lcname, *key;
- zend_string *unqualified_name, *name, *lcname;
++ zend_string *unqualified_name, *name, *lcname, *key;
zend_op *opline;
- op_array->function_name = name = zend_prefix_with_ns(name);
-
+ unqualified_name = decl->name;
+ op_array->function_name = name = zend_prefix_with_ns(unqualified_name);
lcname = zend_string_tolower(name);
if (FC(imports_function)) {