]> granicus.if.org Git - php/commitdiff
MFH: Fixed test for cygwin installs
authorIlia Alshanetsky <iliaa@php.net>
Thu, 20 Oct 2005 14:43:00 +0000 (14:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 20 Oct 2005 14:43:00 +0000 (14:43 +0000)
tests/strings/001.phpt

index ceca4351b68a9d3a3b175c3b157f06260e999f6b..d5e2f6477445945c080eb5c1c56b0b4442612144 100644 (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");