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