From bd06f8bb5f46b49409ee4fff6f4fa16a8756bf3a Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 30 Jan 2015 20:08:17 +0100 Subject: [PATCH] fix warnings --- ext/pdo/pdo_stmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 7ae888cfe1f..dc1201ccdaf 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -1543,7 +1543,7 @@ static PHP_METHOD(PDOStatement, fetchAll) static int register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int is_param) /* {{{ */ { - struct pdo_bound_param_data param = {0}; + struct pdo_bound_param_data param = {{{0}}}; zend_long param_type = PDO_PARAM_STR; zval *parameter; @@ -1582,7 +1582,7 @@ static int register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, bind an input parameter to the value of a PHP variable. $paramno is the 1-based position of the placeholder in the SQL statement (but can be the parameter name for drivers that support named placeholders). It should be called prior to execute(). */ static PHP_METHOD(PDOStatement, bindValue) { - struct pdo_bound_param_data param = {0}; + struct pdo_bound_param_data param = {{{0}}}; zend_long param_type = PDO_PARAM_STR; zval *parameter; PHP_STMT_GET_OBJ;