1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/hash/tests/mhash_004.phpt
2025-08-25 01:52:25 -07:00

21 lines
533 B
PHP

--TEST--
MHash: mhash() modifying algorithm parameter
--SKIPIF--
<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
--FILE--
<?php
$algo = MHASH_MD5;
var_dump($algo);
var_dump(bin2hex(mhash($algo, "test")));
var_dump($algo);
?>
--EXPECTF--
Deprecated: Constant MHASH_MD5 is deprecated since 8.5, as the mhash*() functions were deprecated in %s on line %d
int(1)
Deprecated: Function mhash() is deprecated since 8.1 in %s on line %d
string(32) "098f6bcd4621d373cade4e832627b4f6"
int(1)