From: Anatol Belski Date: Wed, 2 Sep 2020 14:57:27 +0000 (+0200) Subject: hash: Fix warning in the bench script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d1e7d37ebd80698c11923dcf049e75dbe9422d3;p=php hash: Fix warning in the bench script --- 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) {