diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-11-12 10:52:09 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-11-12 10:52:09 +0300 |
commit | 32274d81a1464b41bc49d33f793c5c6ee8e74b0c (patch) | |
tree | ebe737ffe4c487fa6a397be0ac58516203684a63 /Zend | |
parent | d94c27dccaa34ce3135ec59eeaaa31d2c776ffe8 (diff) | |
parent | c3f23642da5ed74fb5056e76502d0a9fc677e40d (diff) | |
download | php-git-32274d81a1464b41bc49d33f793c5c6ee8e74b0c.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
ws
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_compile.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index c7853b2969..982becce4b 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2777,7 +2777,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"); @@ -5890,7 +5890,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); @@ -7245,7 +7245,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) ) { @@ -7253,7 +7253,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; } @@ -7294,13 +7294,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]; |