Annotation of embedaddon/php/ext/standard/tests/strings/crypt_variation1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: crypt() function - long salt
                      3: --SKIPIF--
                      4: <?php
                      5: if (!function_exists('crypt')) {
                      6:        die("SKIP crypt() is not available");
                      7: }
                      8: ?> 
                      9: --FILE--
                     10: <?php
                     11: 
                     12: $b = str_repeat("A", 124);
                     13: echo crypt("A", "$5$" . $b)."\n";
                     14: $b = str_repeat("A", 125);
                     15: echo crypt("A", "$5$" . $b)."\n";
                     16: $b = str_repeat("A", 4096);
                     17: echo crypt("A", "$5$" . $b)."\n";
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: $5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
                     22: $5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
                     23: $5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>