Fix for failing unit test
This commit is contained in:
parent
c2abab8b4f
commit
de08ffc831
@ -61,13 +61,7 @@ class Fingerprint
|
||||
}
|
||||
|
||||
if (function_exists('php_uname')) {
|
||||
self::$sigData[] = php_uname('s') .
|
||||
php_uname('n') .
|
||||
php_uname('m') .
|
||||
PHP_OS .
|
||||
PHP_SAPI .
|
||||
ICONV_IMPL .
|
||||
ICONV_VERSION;
|
||||
self::$sigData[] = php_uname('s') . php_uname('n') . php_uname('m') . PHP_OS . PHP_SAPI . ICONV_IMPL . ICONV_VERSION;
|
||||
}
|
||||
|
||||
if (function_exists('sha1_file')) {
|
||||
@ -81,16 +75,10 @@ class Fingerprint
|
||||
}
|
||||
|
||||
if (function_exists('sha1')) {
|
||||
self::$finHash = sha1(str_ireplace(' ', '', self::$finHash) .
|
||||
strlen(self::$finHash) .
|
||||
metaphone(self::$finHash));
|
||||
|
||||
self::$finHash = sha1(str_ireplace(' ', '', self::$finHash) . strlen(self::$finHash) . metaphone(self::$finHash));
|
||||
return sha1(self::$finHash);
|
||||
} else {
|
||||
self::$finHash = md5(str_ireplace(' ', '', self::$finHash) .
|
||||
strlen(self::$finHash) .
|
||||
metaphone(self::$finHash));
|
||||
|
||||
self::$finHash = md5(str_ireplace(' ', '', self::$finHash) . strlen(self::$finHash) . metaphone(self::$finHash));
|
||||
return md5(self::$finHash);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user