summaryrefslogtreecommitdiff
path: root/ext/hash/tests/mhash_004.phpt
blob: 272166333297a8e351d1e96ee8849c12aca0c49d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
mhash() modifying algorithm parameter
--INI--
magic_quotes_runtime=0
--SKIPIF--
<?php
	include "skip_mhash.inc";
?>
--FILE--
<?php

$algo = MHASH_MD5;
var_dump($algo);
var_dump(bin2hex(mhash($algo, "test")));
var_dump($algo);

?>
--EXPECT--
int(1)
string(32) "098f6bcd4621d373cade4e832627b4f6"
int(1)