diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 522414839f3..567c1dd3879 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -889,7 +889,7 @@ static void php_hash_dtor(zend_resource *rsrc) /* {{{ */ } if (hash->key) { - memset(hash->key, 0, hash->ops->block_size); + ZEND_SECURE_ZERO(hash->key, hash->ops->block_size); efree(hash->key); } efree(hash);