我将fa_IR.dic
和fa_IR.aff
个文件放入d:/fa
并运行:
<?php
$r = enchant_broker_init();
enchant_broker_set_dict_path($r, ENCHANT_ISPELL, 'd:/fa');
var_dump($d = enchant_broker_request_dict($r, 'fa_IR'));
var_dump(enchant_broker_get_dict_path($r, ENCHANT_ISPELL));
//bool(false)
//string(5) "d:/fa"
但enchant_broker_request_dict
返回false
。怎么了?我在Windows上使用PHP5.5。