summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-12 10:50:58 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-12 11:54:12 +0200
commitf601eb15e63590f00acd3453dbc24d4caaed1182 (patch)
treec33aa41158145b5d7691ec27c91470f93155bc58 /Zend
parent06ddc025ac3ad09bdd344cb4779427c81dece9fd (diff)
downloadphp-git-f601eb15e63590f00acd3453dbc24d4caaed1182.tar.gz
Fix -Wmissing-braces warnings
Unfortunate that = {} is a GNU extension.
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 85c0bf8cd5..0837c5b0b8 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5872,7 +5872,8 @@ void zend_compile_func_decl(znode *result, zend_ast *ast, zend_bool toplevel) /*
zend_op_array *orig_op_array = CG(active_op_array);
zend_op_array *op_array = zend_arena_alloc(&CG(arena), sizeof(zend_op_array));
zend_oparray_context orig_oparray_context;
- closure_info info = {0};
+ closure_info info;
+ memset(&info, 0, sizeof(closure_info));
init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE);