Revision 20116,
509 bytes
checked in by nanasess, 13 years ago
(diff) |
- svn properties を再設定
- 再設定用のスクリプト追加
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | --TEST-- |
---|
2 | Function -- convert_uuencode |
---|
3 | --SKIPIF-- |
---|
4 | <?php if (function_exists('convert_uuencode')) { echo 'skip'; } ?> |
---|
5 | --FILE-- |
---|
6 | <?php |
---|
7 | require_once 'PHP/Compat.php'; |
---|
8 | PHP_Compat::loadFunction('convert_uuencode'); |
---|
9 | |
---|
10 | // Simple test |
---|
11 | echo md5(convert_uuencode('This is a simple test')), "\n"; |
---|
12 | |
---|
13 | // Really messy test |
---|
14 | $string = ''; |
---|
15 | for ($i = 0; 127 > $i; $i++) { |
---|
16 | $string .= str_repeat(chr($i), 10); |
---|
17 | } |
---|
18 | echo md5(convert_uuencode($string)); |
---|
19 | |
---|
20 | ?> |
---|
21 | --EXPECT-- |
---|
22 | d7974131c8970783f70851c83fe17767 |
---|
23 | 19acf7157a8345307ea5e5ea6878abb4 |
---|
Note: See
TracBrowser
for help on using the repository browser.