summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_statement.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2014-11-01 19:20:43 +0100
committerMatteo Beccati <mbeccati@php.net>2014-11-01 19:20:43 +0100
commite12d69df0c013bf94b18136fe877f9af2ba15c02 (patch)
tree3404f27f5667b89df1922766edc7b4e833bd8626 /ext/pdo_pgsql/pgsql_statement.c
parent00b50850ebcb2ecc4bd4be053f31556567efa28d (diff)
parent69f6aee35c5da6983a1bb5bb00ecf0ab776379d9 (diff)
downloadphp-git-e12d69df0c013bf94b18136fe877f9af2ba15c02.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Fixed bug #66584 Segmentation fault on statement deallocation
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r--ext/pdo_pgsql/pgsql_statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c
index 35e69a3c02..7da130d52b 100644
--- a/ext/pdo_pgsql/pgsql_statement.c
+++ b/ext/pdo_pgsql/pgsql_statement.c
@@ -297,7 +297,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
sizeof(Oid));
}
if (param->paramno >= 0) {
- if (param->paramno > zend_hash_num_elements(stmt->bound_param_map)) {
+ if (param->paramno >= zend_hash_num_elements(stmt->bound_param_map)) {
pdo_pgsql_error_stmt(stmt, PGRES_FATAL_ERROR, "HY105");
return 0;
}