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