summaryrefslogtreecommitdiffstats
path: root/tests/crypt_checksalt.phpt
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-13 10:26:58 +0200
committerRemi Collet <remi@php.net>2024-09-13 10:26:58 +0200
commit6c4e58ba64e3e7fd203a5e38247c98de920da612 (patch)
tree0315660ab06e370667e3a67b490134bf94dc39e8 /tests/crypt_checksalt.phpt
parent041b8a73ab31498e92f78a73c855deae647ebe36 (diff)
relax test
Diffstat (limited to 'tests/crypt_checksalt.phpt')
-rw-r--r--tests/crypt_checksalt.phpt3
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);
?>