diff options
author | Popa Adrian Marius <mariuz@php.net> | 2011-12-28 19:58:37 +0000 |
---|---|---|
committer | Popa Adrian Marius <mariuz@php.net> | 2011-12-28 19:58:37 +0000 |
commit | 596b37daf13ecf462cf30d76cbe86da25ceb292a (patch) | |
tree | 18823046ff3ed28edf922194bcc49be62729da2a | |
parent | d9f334c633905724982ce4573767bcb8f4c5be5c (diff) | |
download | php-git-596b37daf13ecf462cf30d76cbe86da25ceb292a.tar.gz |
Fixed PDO_Firebird: bug 53280 segfaults if query column count is less than param count
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index d52850b95b..b7817f06d7 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -585,6 +585,9 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat if (param->paramno == -1) { return 0; } + if (param->is_param) { + break; + } value = NULL; value_len = 0; caller_frees = 0; |