Skip to content

Commit

Permalink
Fix test failure with PHP 8.4, ignore param already freed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Dec 13, 2024
1 parent 7f6684d commit 6ee7b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snowflake_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ static int pdo_snowflake_stmt_param_hook(
case PDO_PARAM_EVT_FREE:
v = pdo_sf_param_store_get(S->bound_params,
(size_t) param->paramno + 1, ZSTR_VAL(param->name));
if (!v)
{
break;
}
if (Z_TYPE_P(parameter) != IS_NULL) {
switch (param->param_type) {
case PDO_PARAM_INT:
Expand Down

0 comments on commit 6ee7b5f

Please sign in to comment.