diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-08-01 16:32:30 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-08-01 16:32:30 +0000 |
| commit | 378b1181c266e2afc28bc6076b5496c7de512ffe (patch) | |
| tree | 9bbe56280bc9f1f53d864add724335c271b02316 /ext/pdo_pgsql/pgsql_statement.c | |
| parent | e0b7e95935a2b4cd5c4ad5752672debadfdf0cb6 (diff) | |
| download | php-git-378b1181c266e2afc28bc6076b5496c7de512ffe.tar.gz | |
MFB: 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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index e6499d73a1..4a8d4e1176 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -188,13 +188,13 @@ 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)); } |
