我有PHP 5.3.10(和CentOS 6),因为我明白附魔自动附带它。 当我尝试运行一个像
$tag = 'en_US'; $r = enchant_broker_init(); $bprovides = enchant_broker_describe($r); echo "Current broker provides the following backend(s):\n"; print_r($bprovides);
我得到这个PHP致命错误:PHP致命错误:调用未定义的函数enchant_broker_init()
我也可以看到这在我的PHPconfiguration命令与phpinfo输出
-with-enchant = shared,/ usr''–with-recode = shared,/ usr'
我是否需要添加SGG到php.ini?
好吧,看起来我太天真了,当我阅读某个地方的附件来打包php 5.3以上的时候,我仍然不得不这样做
yum安装php-enchant附魔hunspell