mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
22 lines
310 B
Plaintext
22 lines
310 B
Plaintext
|
--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)
|