mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
MFB: Fixed bug #38168 (Crash in pdo_pgsql on missing bound parameters).
This commit is contained in:
parent
e0b7e95935
commit
378b1181c2
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue