diff options
author | Remi Collet <remi@remirepo.net> | 2024-09-13 10:26:58 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-09-13 10:26:58 +0200 |
commit | 6c4e58ba64e3e7fd203a5e38247c98de920da612 (patch) | |
tree | 0315660ab06e370667e3a67b490134bf94dc39e8 /tests | |
parent | 041b8a73ab31498e92f78a73c855deae647ebe36 (diff) |
relax test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/crypt_checksalt.phpt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/crypt_checksalt.phpt b/tests/crypt_checksalt.phpt index 4fbd8bf..b9a6462 100644 --- a/tests/crypt_checksalt.phpt +++ b/tests/crypt_checksalt.phpt @@ -2,7 +2,8 @@ Test crypt_checksalt --FILE-- <?php -var_dump(crypt_checksalt(crypt_gensalt(XPASS_CRYPT_STD_DES)) === CRYPT_SALT_METHOD_LEGACY); +$r = crypt_checksalt(crypt_gensalt(XPASS_CRYPT_STD_DES)); +var_dump($r === CRYPT_SALT_METHOD_LEGACY || $r === CRYPT_SALT_OK); var_dump(crypt_checksalt(crypt_gensalt()) === CRYPT_SALT_OK); var_dump(crypt_checksalt("!not_a_valid_hash") === CRYPT_SALT_INVALID); ?> |