php-src/Zend/tests/array_hash_zero.phpt

21 lines
319 B
Plaintext
Raw Normal View History

--TEST--
Accept hashes being equal to zero
--FILE--
<?php
$hashes = [
2020-02-03 21:52:20 +00:00
"\x8e\x1a\x63\x0f\x61" => 32,
"\xf7\x17\x7f\x7f\x7f\x7f\x7f\x7f\x7f\x6b\x03\x6a\x13\x63\x17\x6b\x1d\x67" => 64,
];
foreach ($hashes as $hash => $bits) {
2020-02-03 21:52:20 +00:00
var_dump($hashes[$hash], $bits);
}
?>
--EXPECT--
int(32)
int(32)
int(64)
int(64)