Call to undefined function password_hash() in PHP 5.4

前端 未结 1 562
醉酒成梦
醉酒成梦 2020-12-11 10:05

I am trying to use the password_hash() function in my website, and I am getting an error Call to undefined function password_hash(). I checked my S

相关标签:
1条回答
  • 2020-12-11 10:23

    password_hash() is not available in PHP 5.4. It is a new feature in PHP 5.5. In the meantime you can use this compatibility pack replacement.

    Compatibility pack sidenote:

    This library requires PHP >= 5.3.7 OR a version that has the $2y fix backported into it (such as RedHat provides). Note that Debian's 5.3.3 version is NOT supported.

    For versions not covered by these versions, consult:

    • http://php.net/crypt - (PHP 4, PHP 5)
    0 讨论(0)
提交回复
热议问题