Skip to content

Commit 08a5729

Browse files
committed
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible
1 parent c877ab3 commit 08a5729

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ibase_query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
16281628
}
16291629
break;
16301630
_php_ibase_fetch_error:
1631-
zval_dtor(&result);
1631+
zval_ptr_dtor_nogc(&result);
16321632
RETURN_FALSE;
16331633
} /* switch */
16341634

php_ibase_udf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static void call_php(char *name, PARAMDSC *r, int argc, PARAMDSC **argv)
298298
case dtype_sql_date:
299299
case dtype_sql_time:
300300
case dtype_timestamp:
301-
zval_dtor(&args[i]);
301+
zval_ptr_dtor_nogc(&args[i]);
302302
}
303303
}
304304

0 commit comments

Comments
 (0)