We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f4076b + d9602e4 commit 04eadc8Copy full SHA for 04eadc8
ext/hash/hash.c
@@ -851,8 +851,6 @@ PHP_FUNCTION(hash_copy)
851
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
852
853
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
854
- zval_ptr_dtor(return_value);
855
-
856
zend_throw_error(NULL, "Cannot copy hash");
857
RETURN_THROWS();
858
}
0 commit comments