summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-10-20 14:43:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-10-20 14:43:20 +0000
commit9f35aed8f2c6b1ec81085301d2afc9eaa331c4ba (patch)
treeebfc1db3754f8b47f7ffa34a875c0479a11eee90
parentb8973a09deed6161e60ebf08cec69b13fe59d43f (diff)
downloadphp-git-9f35aed8f2c6b1ec81085301d2afc9eaa331c4ba.tar.gz
MFH: Fixed test for cygwin installs
-rw-r--r--tests/strings/001.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/strings/001.phpt b/tests/strings/001.phpt
index 4eacb89592..1d0aeab935 100644
--- a/tests/strings/001.phpt
+++ b/tests/strings/001.phpt
@@ -183,7 +183,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");