Browse Source

MFB: Better fix for bug #44189

PHP-5.2.1RC1
Ilia Alshanetsky 19 years ago
parent
commit
86647d648f
  1. 4
      ext/pdo/pdo_stmt.c
  2. 3
      ext/pdo_pgsql/pgsql_statement.c

4
ext/pdo/pdo_stmt.c

@ -166,10 +166,6 @@ static int dispatch_param_event(pdo_stmt_t *stmt, enum pdo_param_event event_typ
ht = stmt->bound_params;
if (ht && !stmt->bound_param_map) {
return 0;
}
iterate:
if (ht) {
zend_hash_internal_pointer_reset(ht);

3
ext/pdo_pgsql/pgsql_statement.c

@ -250,6 +250,9 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
return 1;
case PDO_PARAM_EVT_EXEC_PRE:
if (!stmt->bound_param_map) {
return 0;
}
if (!S->param_values) {
S->param_values = ecalloc(
zend_hash_num_elements(stmt->bound_param_map),

Loading…
Cancel
Save