diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/standard/tests/general_functions/009.phpt | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/standard/tests/general_functions/009.phpt')
-rw-r--r-- | ext/standard/tests/general_functions/009.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/009.phpt b/ext/standard/tests/general_functions/009.phpt new file mode 100644 index 0000000..e80d361 --- /dev/null +++ b/ext/standard/tests/general_functions/009.phpt @@ -0,0 +1,24 @@ +--TEST-- +SHA1 +--FILE-- +<?php +function test($str) { + $res = sha1($str)."\n"; + return $res; +} +echo test(""); +echo test("a"); +echo test("abc"); +echo test("message digest"); +echo test("abcdefghijklmnopqrstuvwxyz"); +echo test("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); +echo test("12345678901234567890123456789012345678901234567890123456789012345678901234567890"); +?> +--EXPECT-- +da39a3ee5e6b4b0d3255bfef95601890afd80709 +86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 +a9993e364706816aba3e25717850c26c9cd0d89d +c12252ceda8be8994d5fa0290a47231c1d16aae3 +32d10c7b8cf96570ca04ce37f2a19d84240d3a89 +761c457bf73b14d27e9e9265c46f4b4dda11f940 +50abf5706a150990a08b2c5ea40fa0e585554732 |