mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
MFH: Fixed test for cygwin installs
This commit is contained in:
parent
ad1f706fda
commit
b0c0b79136
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user