Skip to content

Commit 04eadc8

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: NEWS for GH-19162 ext/socket: Remove incorrect zval_ptr_dtor ext/hash: Remove incorrect zval_ptr_dtor
2 parents 7f4076b + d9602e4 commit 04eadc8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/hash/hash.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,6 @@ PHP_FUNCTION(hash_copy)
851851
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
852852

853853
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
854-
zval_ptr_dtor(return_value);
855-
856854
zend_throw_error(NULL, "Cannot copy hash");
857855
RETURN_THROWS();
858856
}

0 commit comments

Comments
 (0)