From 3d1e7d37ebd80698c11923dcf049e75dbe9422d3 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 2 Sep 2020 16:57:27 +0200 Subject: [PATCH] hash: Fix warning in the bench script --- ext/hash/bench.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/hash/bench.php b/ext/hash/bench.php index 60c038ca99..436390f7d5 100755 --- a/ext/hash/bench.php +++ b/ext/hash/bench.php @@ -74,6 +74,9 @@ error_reporting(E_ALL&~E_NOTICE); $data = file_get_contents(__FILE__); $time = array(); +foreach (hash_algos() as $algo) { + $time[$algo] = 0; +} for ($j = 0; $j < 10; $j++) { foreach (hash_algos() as $algo) { -- 2.50.1