Annotation of embedaddon/php/ext/hash/tests/hash_algos.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Test hash_algos() function : basic functionality
3: --SKIPIF--
4: <?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
5: --FILE--
6: <?php
7:
8: /* Prototype : array hash_algos (void)
9: * Description: Return a list of registered hashing algorithms
10: * Source code: ext/hash/hash.c
11: * Alias to functions:
12: */
13:
14: echo "*** Testing hash_algos() : basic functionality ***\n";
15: var_dump(hash_algos());
16:
17: ?>
18: ===Done===
19: --EXPECTF--
20: *** Testing hash_algos() : basic functionality ***
1.1.1.2 ! misho 21: array(43) {
! 22: [%d]=>
1.1 misho 23: string(3) "md2"
1.1.1.2 ! misho 24: [%d]=>
1.1 misho 25: string(3) "md4"
1.1.1.2 ! misho 26: [%d]=>
1.1 misho 27: string(3) "md5"
1.1.1.2 ! misho 28: [%d]=>
1.1 misho 29: string(4) "sha1"
1.1.1.2 ! misho 30: [%d]=>
1.1 misho 31: string(6) "sha224"
1.1.1.2 ! misho 32: [%d]=>
1.1 misho 33: string(6) "sha256"
1.1.1.2 ! misho 34: [%d]=>
1.1 misho 35: string(6) "sha384"
1.1.1.2 ! misho 36: [%d]=>
1.1 misho 37: string(6) "sha512"
1.1.1.2 ! misho 38: [%d]=>
1.1 misho 39: string(9) "ripemd128"
1.1.1.2 ! misho 40: [%d]=>
1.1 misho 41: string(9) "ripemd160"
1.1.1.2 ! misho 42: [%d]=>
1.1 misho 43: string(9) "ripemd256"
1.1.1.2 ! misho 44: [%d]=>
1.1 misho 45: string(9) "ripemd320"
1.1.1.2 ! misho 46: [%d]=>
1.1 misho 47: string(9) "whirlpool"
1.1.1.2 ! misho 48: [%d]=>
1.1 misho 49: string(10) "tiger128,3"
1.1.1.2 ! misho 50: [%d]=>
1.1 misho 51: string(10) "tiger160,3"
1.1.1.2 ! misho 52: [%d]=>
1.1 misho 53: string(10) "tiger192,3"
1.1.1.2 ! misho 54: [%d]=>
1.1 misho 55: string(10) "tiger128,4"
1.1.1.2 ! misho 56: [%d]=>
1.1 misho 57: string(10) "tiger160,4"
1.1.1.2 ! misho 58: [%d]=>
1.1 misho 59: string(10) "tiger192,4"
1.1.1.2 ! misho 60: [%d]=>
1.1 misho 61: string(6) "snefru"
1.1.1.2 ! misho 62: [%d]=>
1.1 misho 63: string(9) "snefru256"
1.1.1.2 ! misho 64: [%d]=>
1.1 misho 65: string(4) "gost"
1.1.1.2 ! misho 66: [%d]=>
1.1 misho 67: string(7) "adler32"
1.1.1.2 ! misho 68: [%d]=>
1.1 misho 69: string(5) "crc32"
1.1.1.2 ! misho 70: [%d]=>
1.1 misho 71: string(6) "crc32b"
1.1.1.2 ! misho 72: [%d]=>
! 73: string(6) "fnv132"
! 74: [%d]=>
! 75: string(6) "fnv164"
! 76: [%d]=>
! 77: string(5) "joaat"
! 78: [%d]=>
1.1 misho 79: string(10) "haval128,3"
1.1.1.2 ! misho 80: [%d]=>
1.1 misho 81: string(10) "haval160,3"
1.1.1.2 ! misho 82: [%d]=>
1.1 misho 83: string(10) "haval192,3"
1.1.1.2 ! misho 84: [%d]=>
1.1 misho 85: string(10) "haval224,3"
1.1.1.2 ! misho 86: [%d]=>
1.1 misho 87: string(10) "haval256,3"
1.1.1.2 ! misho 88: [%d]=>
1.1 misho 89: string(10) "haval128,4"
1.1.1.2 ! misho 90: [%d]=>
1.1 misho 91: string(10) "haval160,4"
1.1.1.2 ! misho 92: [%d]=>
1.1 misho 93: string(10) "haval192,4"
1.1.1.2 ! misho 94: [%d]=>
1.1 misho 95: string(10) "haval224,4"
1.1.1.2 ! misho 96: [%d]=>
1.1 misho 97: string(10) "haval256,4"
1.1.1.2 ! misho 98: [%d]=>
1.1 misho 99: string(10) "haval128,5"
1.1.1.2 ! misho 100: [%d]=>
1.1 misho 101: string(10) "haval160,5"
1.1.1.2 ! misho 102: [%d]=>
1.1 misho 103: string(10) "haval192,5"
1.1.1.2 ! misho 104: [%d]=>
1.1 misho 105: string(10) "haval224,5"
1.1.1.2 ! misho 106: [%d]=>
1.1 misho 107: string(10) "haval256,5"
108: }
109: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>