【问题标题】:undefined constant PASSWORD_ARGON2I Laravel未定义的常量 PASSWORD_ARGON2I Laravel
【发布时间】:2019-06-08 00:19:14
【问题描述】:

我在使用 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

请帮忙

【问题讨论】:

    标签: php laravel-5 argon2-ffi


    【解决方案1】:

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

    参考:PHP Warning: Use of undefined constant PASSWORD_ARGON2ID when using password_hash() in php 7.3

    【讨论】:

      猜你喜欢
      • 2018-09-04
      • 2016-05-06
      • 2014-04-23
      • 1970-01-01
      • 1970-01-01
      • 2018-10-19
      • 2019-09-30
      • 1970-01-01
      相关资源
      最近更新 更多