| Revision 20119,
509 bytes
checked in by nanasess, 15 years ago
(diff) |
|
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
| 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.