1--TEST--
2enchant_dict_get_error() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--EXTENSIONS--
6enchant
7--SKIPIF--
8<?php
9if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
10if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");}
11?>
12--FILE--
13<?php
14$broker = enchant_broker_init();
15$dicts = enchant_broker_list_dicts($broker);
16
17if (is_object($broker)) {
18    echo("OK\n");
19    $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']);
20
21    if ($requestDict) {
22        var_dump(enchant_dict_get_error($requestDict));
23    } else {
24        echo("broker request dict failed\n");
25    }
26} else {
27    echo("init failed\n");
28}
29echo("OK\n");
30?>
31--EXPECT--
32OK
33bool(false)
34OK
35