mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/hash: Remove incorrect zval_ptr_dtor
This commit is contained in:
@@ -850,8 +850,6 @@ PHP_FUNCTION(hash_copy)
|
||||
RETVAL_OBJ(Z_OBJ_HANDLER_P(zhash, clone_obj)(Z_OBJ_P(zhash)));
|
||||
|
||||
if (php_hashcontext_from_object(Z_OBJ_P(return_value))->context == NULL) {
|
||||
zval_ptr_dtor(return_value);
|
||||
|
||||
zend_throw_error(NULL, "Cannot copy hash");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user