mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +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:
|
case PDO_PARAM_EVT_EXEC_PRE:
|
||||||
if (!S->param_values) {
|
if (!S->param_values) {
|
||||||
S->param_values = ecalloc(
|
S->param_values = ecalloc(
|
||||||
zend_hash_num_elements(stmt->bound_params),
|
zend_hash_num_elements(stmt->bound_param_map),
|
||||||
sizeof(char*));
|
sizeof(char*));
|
||||||
S->param_lengths = ecalloc(
|
S->param_lengths = ecalloc(
|
||||||
zend_hash_num_elements(stmt->bound_params),
|
zend_hash_num_elements(stmt->bound_param_map),
|
||||||
sizeof(int));
|
sizeof(int));
|
||||||
S->param_formats = ecalloc(
|
S->param_formats = ecalloc(
|
||||||
zend_hash_num_elements(stmt->bound_params),
|
zend_hash_num_elements(stmt->bound_param_map),
|
||||||
sizeof(int));
|
sizeof(int));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue