From ed320b500c932aaab3e2abebcba4c7378c8d317c Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 31 Jan 2025 22:28:31 +0200 Subject: [PATCH] Fix C23 syntax for VS16 (CI runs VS22) --- ext/pdo/pdo_stmt.c | 2 +- ext/spl/spl_iterators.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index f803dfe836b..5e8a52f7e54 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -640,7 +640,7 @@ static bool pdo_call_fetch_object_constructor(zend_function *constructor, HashTa zval retval_constructor_call; zend_fcall_info fci = { .size = sizeof(zend_fcall_info), - .function_name = {}, + .function_name = { 0 }, .object = Z_OBJ_P(return_value), .retval = &retval_constructor_call, .param_count = 0, diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 23eb95c4d7e..d0491f62552 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -3086,7 +3086,7 @@ PHP_FUNCTION(iterator_apply) spl_iterator_apply_info apply_info = { .count = 0, .params_ht = NULL, - .fcc = {}, + .fcc = { 0 }, }; /* The HashTable is used to determine positional arguments */