mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #79132
Following cmb's suggestion and replacing the counter with a check against the bound_params HT, which ensures that both cannot go out of sync.
This commit is contained in:
parent
7a89157f8c
commit
ccb7f1c7d8
5 changed files with 69 additions and 4 deletions
|
@ -229,7 +229,6 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len
|
|||
S->num_params = mysql_stmt_param_count(S->stmt);
|
||||
|
||||
if (S->num_params) {
|
||||
S->params_given = 0;
|
||||
#ifdef PDO_USE_MYSQLND
|
||||
S->params = NULL;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue