summaryrefslogtreecommitdiff
path: root/ext/standard/scanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/scanf.c')
-rw-r--r--ext/standard/scanf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c
index 1464008243..9f6986ab16 100644
--- a/ext/standard/scanf.c
+++ b/ext/standard/scanf.c
@@ -906,7 +906,7 @@ literal:
__buf[0] = sch;
__buf[1] = '\0';
current = args[objIndex++];
- zval_dtor(*current);
+ zval_ptr_dtor_nogc(*current);
ZVAL_STRINGL( *current, __buf, 1);
} else {
add_index_stringl(return_value, objIndex++, &sch, 1);