PHP 5.3.20:未定义的函数hash() [英] PHP 5.3.20: undefined function hash()
问题描述
我正在尝试使用PHP 5.3.20在FreeBSD上安装Magento,但是安装脚本失败
I'm trying to install Magento on FreeBSD with PHP 5.3.20, but the install script fails with
Fatal error: Call to undefined function hash() in /var/www/.../magento/lib/Zend/Cache/Backend/File.php on line 894
As it's cleared in another StackOverflow question it requires PHP 5.1.2, so that's a different problem. I installed the php5-mhash
extension from ports and added mhash.so and hash.so to the extensions.ini. Also, there is no --disable-hash
in the configure command. And it's the same in CLI too.
可能是因为open_basedir?有什么想法吗?
Probably because open_basedir? Any ideas?
推荐答案
尝试从安全角度进行安装,看看是否适合您.
Try installing it from security and see if this will work for you.
cd /usr/ports/security/php5-hash
make install clean
这篇关于PHP 5.3.20:未定义的函数hash()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!