summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopa Adrian Marius <mariuz@php.net>2011-12-28 19:58:37 (GMT)
committerPopa Adrian Marius <mariuz@php.net>2011-12-28 19:58:37 (GMT)
commitb85713cbf09b34b6d3ef4d69bb9efdcabe1dae72 (patch)
tree7c7a6ff8862dab16a7e221bb2af5cd43ee9c5b99
parent13fb5735fc569199dca75044cd21ddcfd9d41bf4 (diff)
downloadphp-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c
index d52850b..b7817f0 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;