1--TEST--
2@enchant_broker_free() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if(!extension_loaded('enchant')) die('skip, enchant not loader');
8if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
9?>
10--FILE--
11<?php
12$broker = enchant_broker_init();
13if (is_object($broker)) {
14    echo("OK\n");
15
16    if (@enchant_broker_free($broker)) {
17        echo("OK\n");
18    } else {
19        echo("broker free failed\n");
20    }
21} else {
22    echo("init failed\n");
23}
24echo("OK\n");
25?>
26--EXPECT--
27OK
28OK
29OK
30