如何打开 hash_algos() ?我使用的是 Php 5.2.11
我的 PHP 版本是 5.2.11,高于 hash_algos 所需的版本。但是,当我通过网络或命令行运行它时,它会返回
Fatal error: Call to undefined function hash_algos()
So ,就像其他哈希函数一样。 我是否必须在 php.inin 中打开任何内容或者我应该做什么?
我已经检查了 php --re hash
并且扩展名不存在。我非常确定它不存在或已禁用。
我也尝试安装它(PECL)但不知道如何安装。
My PHP version is 5.2.11 which is higher than the required version for hash_algos. however, when I run it either via web or command line, it returns
Fatal error: Call to undefined function hash_algos()
So as for other Hash functions.
Do i have to turn anything on in the php.inin or what should I do?
I have checked the php --re hash
and the extension isn't there. I am very sure it is either not there or disabled.
I also tried to installed it (PECL) but don't know how.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要安装 Hash PECL 模块:
http://pecl.php.net/package/hash< /a>
为此,您需要具有服务器访问权限。确保您已安装 PECL:
并运行
希望这会有所帮助!
You'll need to install the Hash PECL module:
http://pecl.php.net/package/hash
To do this, you're going to need to have server access. Make sure you have PECL installed:
and run
Hope this helps!
hash_algos
和 Hash 模块中的相关函数内置于 PHP 中,因此无需在 php.ini 中启用任何扩展。鉴于您无论如何都无法使用该功能,它很可能在PHP 的编译。
如果您无法重新编译 PHP,或者安装未禁用此 hsan 的版本,您应该能够安装 PECL 模块,例如 由 mattbasta 描述。
hash_algos
and the related functions in the Hash module are built into PHP, so there's no extension you need to enable in your php.ini.Given that you can't use the function anyway, it has most likely been disabled during compilation of PHP.
If you aren't able to recompile PHP, or otherwise install a version where this hsan't been disabled, you should be able to install the PECL module like described by mattbasta.