1

我在使用 laravel 中引入的新密码散列 laravel 时遇到了困难(argon)。我收到此错误消息

Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' 
(this will throw an Error in a future version of PHP) 
{"exception":"[object] (ErrorException(code: 0): 
Use of undefined constant PASSWORD_ARGON2I - 
assumed 'PASSWORD_ARGON2I' (this will throw an Error 
in a future version of PHP)

我的php版本类型是argon推荐的,我在mac系统上工作

PHP 7.2.0 (cli) (built: Dec 11 2017 16:00:14) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

请帮忙

4

1 回答 1

1

最可能的原因是 PHP 没有使用--with-password-argon2.

参考:PHP 警告:在 php 7.3 中使用 password_hash() 时使用未定义的常量 PASSWORD_ARGON2ID

于 2019-06-07T16:15:23.270 回答