--TEST-- crc32c() hash tests --SKIPIF-- <?php if (!extension_loaded('crc32c')) { echo 'skip'; } ?> --FILE-- <?php var_dump(in_array('crc32c', hash_algos())); $crc = hash_init('crc32c'); hash_update($crc, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi'); hash_update($crc, 'jklmnopqrstuvwxyz0123456789'); echo hash_final($crc); ?> --EXPECT-- bool(true) a245d57d
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
001_loaded.phpt | File | 213 B | 0644 |
|
002_basic.phpt | File | 3.4 KB | 0644 |
|
003_extend.phpt | File | 720 B | 0644 |
|
004_error.phpt | File | 769 B | 0644 |
|
005_hash.phpt | File | 357 B | 0644 |
|