MFH: Fixed test for cygwin installs

This commit is contained in:
Ilia Alshanetsky 2005-10-20 14:43:00 +00:00
parent ad1f706fda
commit b0c0b79136

View File

@ -181,7 +181,10 @@ echo "Testing uniqid: ";
$str = "prefix";
$ui1 = uniqid($str);
$ui2 = uniqid($str);
if (strlen($ui1) == strlen($ui2) && strlen($ui1) == 19 && $ui1 != $ui2) {
$len = strncasecmp(PHP_OS, 'CYGWIN', 6) ? 19 : 29;
if (strlen($ui1) == strlen($ui2) && strlen($ui1) == $len && $ui1 != $ui2) {
echo("passed\n");
} else {
echo("failed!\n");