com php-src: Declares in top: Zend/zend_compile.c

From: Date: Sun, 08 Mar 2015 16:01:55 +0000
Subject: com php-src: Declares in top: Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85326@lists.php.net to get a copy of this message
Commit: 1638db71fd031bba46e5512c0c3de0034ab233c9 Author: Xinchen Hui <laruence@php.net> Mon, 9 Mar 2015 00:01:55 +0800 Parents: caa306f6e3c29105423bc51e688341c43fdddd78 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1638db71fd031bba46e5512c0c3de0034ab233c9 Log: Declares in top Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 4e35fbf..2a428fc 100644 --- a/Zend/zend_compile..c +++ b/Zend/zend_compile.c @@ -5046,18 +5046,18 @@ void zend_compile_use(zend_ast *ast) /* {{{ */ void zend_compile_group_use(zend_ast *ast) /* {{{ */ { + uint32_t i; zend_string *ns = zend_ast_get_str(ast->child[0]); zend_ast_list *list = zend_ast_get_list(ast->child[1]); - uint32_t i; for (i = 0; i < list->children; i++) { - zend_ast *use = list->child[i]; + zend_ast *inline_use, *use = list->child[i]; zval *name_zval = zend_ast_get_zval(use->child[0]); zend_string *name = Z_STR_P(name_zval); zend_string *compound_ns = zend_concat_names(ns->val, ns->len, name->val, name->len); zend_string_release(name); ZVAL_STR(name_zval, compound_ns); - zend_ast *inline_use = zend_ast_create_list(1, ZEND_AST_USE, use); + inline_use = zend_ast_create_list(1, ZEND_AST_USE, use); inline_use->attr = ast->attr ? ast->attr : use->attr; zend_compile_use(inline_use); }

« previous php.cvs (#85326) next »