summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorPopa Adrian Marius <mariuz@php.net>2011-12-28 19:58:37 +0000
committerPopa Adrian Marius <mariuz@php.net>2011-12-28 19:58:37 +0000
commit853b48dc30fd11c9875fa2dd8688fc761e26756d (patch)
treee34f67f34976d7a225b39dd9a9cdaab35dcd7097 /ext/pdo_firebird
parent24227957bfe4fb6503a94bb5702c1f87166f4c24 (diff)
downloadphp-git-853b48dc30fd11c9875fa2dd8688fc761e26756d.tar.gz
Fixed PDO_Firebird: bug 53280 segfaults if query column count is less than param count
Diffstat (limited to 'ext/pdo_firebird')
-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 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;