]> granicus.if.org Git - php/commitdiff
Fix argon2 test if provided by sodium
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 24 Feb 2020 20:34:37 +0000 (21:34 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 24 Feb 2020 20:34:37 +0000 (21:34 +0100)
ext/standard/tests/password/password_hash_error_argon2.phpt

index 96f029aba93d68ff7272070765f62b569034da69..0323057a7efc2d974d803902d5193377ad71f929 100644 (file)
@@ -4,6 +4,7 @@ Test error operation of password_hash() with Argon2i and Argon2id
 <?php
 if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
+if (PASSWORD_ARGON2_PROVIDER != 'standard') die('skip argon2 not provided by standard');
 ?>
 --FILE--
 <?php