1--TEST--
2Test md5() function : basic functionality - with raw output
3--FILE--
4<?php
5echo "*** Testing md5() : basic functionality - with raw output***\n";
6$str = "Hello World";
7$md5_raw = md5($str, true);
8var_dump(bin2hex($md5_raw));
9
10$md5 = md5($str, false);
11
12if (strcmp(bin2hex($md5_raw), $md5) == 0 ) {
13    echo "TEST PASSED\n";
14} else {
15    echo "TEST FAILED\n";
16    var_dump($md5_raw, $md5);
17}
18
19?>
20--EXPECT--
21*** Testing md5() : basic functionality - with raw output***
22string(32) "b10a8db164e0754105b7a99be72e3fe5"
23TEST PASSED
24