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.
1 parent 8516ae8 commit bdca73cCopy full SHA for bdca73c
ext/hash/hash.c
@@ -850,8 +850,6 @@ PHP_FUNCTION(hash_copy)
850
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
851
852
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
853
- zval_ptr_dtor(return_value);
854
-
855
zend_throw_error(NULL, "Cannot copy hash");
856
RETURN_THROWS();
857
}
0 commit comments