--TEST-- Test error operation of password_hash() with Argon2i and Argon2id --SKIPIF-- --FILE-- 0])); var_dump(password_hash('test', PASSWORD_ARGON2I, ['time_cost' => 0])); var_dump(password_hash('test', PASSWORD_ARGON2I, ['threads' => 0])); var_dump(password_hash('test', PASSWORD_ARGON2ID, ['memory_cost' => 0])); var_dump(password_hash('test', PASSWORD_ARGON2ID, ['time_cost' => 0])); var_dump(password_hash('test', PASSWORD_ARGON2ID, ['threads' => 0])); ?> --EXPECTF-- Warning: password_hash(): Memory cost is outside of allowed memory range in %s on line %d NULL Warning: password_hash(): Time cost is outside of allowed time range in %s on line %d NULL Warning: password_hash(): %sthread%s NULL Warning: password_hash(): Memory cost is outside of allowed memory range in %s on line %d NULL Warning: password_hash(): Time cost is outside of allowed time range in %s on line %d NULL Warning: password_hash(): %sthread%s NULL