com php-src: fix warnings: ext/pdo/pdo_stmt.c
| From: | Michael Wallner | Date: | Fri, 30 Jan 2015 19:08:17 +0000 |
| Subject: | com php-src: fix warnings: ext/pdo/pdo_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84471@lists.php.net to get a copy of this message | ||
Commit: bd06f8bb5f46b49409ee4fff6f4fa16a8756bf3a
Author: Michael Wallner <mike@php.net> Fri, 30 Jan 2015 20:08:17 +0100
Parents: b72b4084a5fca22a195720441cdd15ad2c767a5c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bd06f8bb5f46b49409ee4fff6f4fa16a8756bf3a
Log:
fix warnings
Changed paths:
M ext/pdo/pdo_stmt.c
Diff:
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 7ae888c..dc1201c 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;