xref: /PHP-8.4/ext/hash/tests/mhash_004.phpt (revision 29f98e74)
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--EXPECTF--
15int(1)
16
17Deprecated: Function mhash() is deprecated since 8.1 in %s on line %d
18string(32) "098f6bcd4621d373cade4e832627b4f6"
19int(1)
20