在PHP 5.4中调用未定义的函数password_hash() [英] Call to undefined function password_hash() in PHP 5.4

查看:120
本文介绍了在PHP 5.4中调用未定义的函数password_hash()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的网站中使用password_hash()函数,但出现错误Call to undefined function password_hash().我在GoDaddy中检查了我的服务器详细信息,而我当前的php版本是5.4.我该如何解决?

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 Server Details in GoDaddy, and my current version of php is 5.4. How can I fix this?

推荐答案

password_hash() 在PHP 5.4中不可用.它是PHP 5.5中的新功能.同时,您可以使用 此兼容包替换 .

兼容性包旁注:

该库需要PHP> = 5.3.7或一个向后移植了$ 2y修订的版本(例如RedHat提供).请注意,不支持Debian的5.3.3版本.

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)

这篇关于在PHP 5.4中调用未定义的函数password_hash()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆