xref: /PHP-7.4/Zend/tests/array_hash_zero.phpt (revision dac2b060)
1--TEST--
2Accept hashes being equal to zero
3--FILE--
4<?php
5
6$hashes = [
7	"\x8e\x1a\x63\x0f\x61" => 32,
8	"\xf7\x17\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x6b\x03\x6a\x13\x63\x17\x6b\x1d\x67" => 64,
9];
10
11foreach ($hashes as $hash => $bits) {
12	var_dump($hashes[$hash], $bits);
13}
14
15?>
16--EXPECT--
17int(32)
18int(32)
19int(64)
20int(64)
21