Skip to content

Commit 3d1e7d3

Browse files
committed
hash: Fix warning in the bench script
1 parent 05cd31e commit 3d1e7d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/hash/bench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474

7575
$data = file_get_contents(__FILE__);
7676
$time = array();
77+
foreach (hash_algos() as $algo) {
78+
$time[$algo] = 0;
79+
}
7780

7881
for ($j = 0; $j < 10; $j++) {
7982
foreach (hash_algos() as $algo) {

0 commit comments

Comments
 (0)