Skip to content

Commit 7f4f324

Browse files
committed
hash: The args array is always mutable
Signed-off-by: Anatol Belski <ab@php.net>
1 parent 1068e9f commit 7f4f324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/hash/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ PHP_METHOD(HashContext, __serialize)
14871487

14881488
if (hash->args) {
14891489
ZVAL_ARR(&tmp, hash->args);
1490-
Z_TRY_ADDREF(tmp);
1490+
Z_ADDREF(tmp);
14911491
} else {
14921492
ZVAL_NULL(&tmp);
14931493
}

0 commit comments

Comments
 (0)