Skip to content

Commit 1c94632

Browse files
authored
Fix SKIPIF of openssl_password.phpt (#20941)
It's possible there is no argon2 provider at all.
1 parent 4bb68c5 commit 1c94632

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/openssl/tests/openssl_password.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ openssl
55
--SKIPIF--
66
<?php
77
if (!function_exists('openssl_password_hash')) {
8-
echo "skip - No openssl_password_hash";
8+
die("skip No openssl_password_hash");
9+
}
10+
if (!defined('PASSWORD_ARGON2_PROVIDER')) {
11+
die("skip No openssl argon2 support");
912
}
1013
?>
1114
--FILE--

0 commit comments

Comments
 (0)