From 1e0f6fe5bbba046208479b3f15cc9e5954a58daa Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 17 Apr 2007 15:29:13 +0000 Subject: [PATCH] Separate parm zval. --- ext/pdo_pgsql/pgsql_statement.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 0719d663d74..0a84bd32589 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -306,6 +306,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data * S->param_lengths[param->paramno] = 1; S->param_formats[param->paramno] = 0; } else { + SEPARATE_ZVAL_IF_NOT_REF(¶m->parameter); convert_to_string(param->parameter); S->param_values[param->paramno] = Z_STRVAL_P(param->parameter); S->param_lengths[param->paramno] = Z_STRLEN_P(param->parameter);