1--TEST--
2@enchant_broker_free() 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");}
10?>
11--FILE--
12<?php
13$broker = enchant_broker_init();
14if (is_object($broker)) {
15    echo("OK\n");
16
17    if (@enchant_broker_free($broker)) {
18        echo("OK\n");
19    } else {
20        echo("broker free failed\n");
21    }
22} else {
23    echo("init failed\n");
24}
25echo("OK\n");
26?>
27--EXPECT--
28OK
29OK
30OK
31