]> granicus.if.org Git - php/commitdiff
hash: Fix warning in the bench script
authorAnatol Belski <ab@php.net>
Wed, 2 Sep 2020 14:57:27 +0000 (16:57 +0200)
committerAnatol Belski <ab@php.net>
Wed, 2 Sep 2020 15:35:51 +0000 (17:35 +0200)
ext/hash/bench.php

index 60c038ca99d4479f3ed689e007b3673845ff698b..436390f7d517a473481097d05ba8084f45ea0f2e 100755 (executable)
@@ -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) {