diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-08-01 16:31:29 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-08-01 16:31:29 +0000 |
commit | 7f52671781c33964969352e21789fbc2b53d0477 (patch) | |
tree | 6e58d9e614aefd4ae5a7e655db0f5123b7a5fe38 /ext/pdo_pgsql/pgsql_statement.c | |
parent | 68613beb3ec3c523c8db4d371af730a61c6082da (diff) | |
download | php-git-7f52671781c33964969352e21789fbc2b53d0477.tar.gz |
Fixed bug #38168 (Crash in pdo_pgsql on missing bound parameters).
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index d4c12cef2a..a1488b5a39 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -247,16 +247,16 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data * case PDO_PARAM_EVT_EXEC_PRE: if (!S->param_values) { S->param_values = ecalloc( - zend_hash_num_elements(stmt->bound_params), + zend_hash_num_elements(stmt->bound_param_map), sizeof(char*)); S->param_lengths = ecalloc( - zend_hash_num_elements(stmt->bound_params), + zend_hash_num_elements(stmt->bound_param_map), sizeof(int)); S->param_formats = ecalloc( - zend_hash_num_elements(stmt->bound_params), + zend_hash_num_elements(stmt->bound_param_map), sizeof(int)); S->param_types = ecalloc( - zend_hash_num_elements(stmt->bound_params), + zend_hash_num_elements(stmt->bound_param_map), sizeof(Oid)); } if (param->paramno >= 0) { |