xref: /PHP-8.0/ext/hash/tests/mhash_004.phpt (revision f73c0102)
1--TEST--
2MHash: mhash() modifying algorithm parameter
3--SKIPIF--
4<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
5--FILE--
6<?php
7
8$algo = MHASH_MD5;
9var_dump($algo);
10var_dump(bin2hex(mhash($algo, "test")));
11var_dump($algo);
12
13?>
14--EXPECT--
15int(1)
16string(32) "098f6bcd4621d373cade4e832627b4f6"
17int(1)
18