com php-src: ws: Zend/zend_compile.c
| From: | Dmitry Stogov | Date: | Tue, 12 Nov 2019 07:51:55 +0000 |
| Subject: | com php-src: ws: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109249@lists.php.net to get a copy of this message | ||
Commit: c3f23642da5ed74fb5056e76502d0a9fc677e40d
Author: Dmitry Stogov <dmitry@zend.com> Tue, 12 Nov 2019 10:51:55 +0300
Parents: 686a24c1ebc35b96ea7b64cc51e13b2bb5faf833
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c3f23642da5ed74fb5056e76502d0a9fc677e40d
Log:
ws
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index ce37710dd09..b1f47673b93 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2622,7 +2622,7 @@ static void zend_compile_list_assign(
continue;
}
}
-
+
if (elem_ast->kind == ZEND_AST_UNPACK) {
zend_error(E_COMPILE_ERROR,
"Spread operator is not supported in assignments");
@@ -5611,7 +5611,7 @@ static void find_implicit_binds(closure_info *info, zend_ast *params_ast,
zend_a
zend_ast_list *param_list = zend_ast_get_list(params_ast);
uint32_t i;
- zend_hash_init(&info->uses, param_list->children, NULL, NULL, 0);
+ zend_hash_init(&info->uses, param_list->children, NULL, NULL, 0);
find_implicit_binds_recursively(info, stmt_ast);
@@ -7072,7 +7072,7 @@ static zend_bool zend_try_ct_eval_array(zval *result, zend_ast *ast) /* {{{ */
if (elem_ast->kind != ZEND_AST_UNPACK) {
zend_eval_const_expr(&elem_ast->child[0]);
zend_eval_const_expr(&elem_ast->child[1]);
-
+
if (elem_ast->attr /* by_ref */ || elem_ast->child[0]->kind != ZEND_AST_ZVAL
|| (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL)
) {
@@ -7080,7 +7080,7 @@ static zend_bool zend_try_ct_eval_array(zval *result, zend_ast *ast) /* {{{ */
}
} else {
zend_eval_const_expr(&elem_ast->child[0]);
-
+
if (elem_ast->child[0]->kind != ZEND_AST_ZVAL) {
is_constant = 0;
}
@@ -7121,13 +7121,13 @@ static zend_bool zend_try_ct_eval_array(zval *result, zend_ast *ast) /* {{{
*/
}
Z_TRY_ADDREF_P(val);
} ZEND_HASH_FOREACH_END();
-
+
continue;
} else {
zend_error_noreturn(E_COMPILE_ERROR, "Only arrays and Traversables can be unpacked");
}
- }
-
+ }
+
Z_TRY_ADDREF_P(value);
key_ast = elem_ast->child[1];