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 | b85713cbf09b34b6d3ef4d69bb9efdcabe1dae72 (patch) | |
tree | 7c7a6ff8862dab16a7e221bb2af5cd43ee9c5b99 | |
parent | 13fb5735fc569199dca75044cd21ddcfd9d41bf4 (diff) | |
download | php-git-b85713cbf09b34b6d3ef4d69bb9efdcabe1dae72.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; |