mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
Update broker_request_dict_01.phpt
This commit is contained in:
parent
4848b6af6b
commit
018c412b5c
@ -11,22 +11,19 @@ if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, don
|
||||
--FILE--
|
||||
<?php
|
||||
$broker = enchant_broker_init();
|
||||
if (!is_resource($broker)) {
|
||||
exit("init failed\n");
|
||||
}
|
||||
|
||||
$dicts = enchant_broker_list_dicts($broker);
|
||||
|
||||
if (is_array($dicts)) {
|
||||
$dict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']);
|
||||
if (is_resource($dict)) {
|
||||
echo "OK\n";
|
||||
echo("OK\n");
|
||||
} else {
|
||||
echo "fail to request " . $dicts[0]['lang_tag'];
|
||||
echo("fail to request " . $dicts[0]['lang_tag']);
|
||||
}
|
||||
} else {
|
||||
exit("list dicts failed\n");
|
||||
echo("list dicts failed\n");
|
||||
}
|
||||
echo "OK\n";
|
||||
echo("OK\n");
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
Loading…
Reference in New Issue
Block a user