File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
enchant /
tests /
bug13181.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:54 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
bug #13181, leaving a context frees the broker resources
--SKIPIF--
<?php
if(!extension_loaded('enchant')) die('skip, enchant not loader');
?>
--FILE--
<?php
function get_dictionnary() {
$rBroker = enchant_broker_init();
$t = enchant_broker_request_dict($rBroker, 'en');
var_dump($t);
return $t;
}
$rDict = get_dictionnary();
var_dump($rDict);
enchant_dict_suggest($rDict, "soong");
function get_broker() {
$t = enchant_broker_init();
var_dump($t);
return $t;
}
$rbroker = get_broker();
var_dump($rbroker);
function get_dict($broker) {
$t = enchant_broker_request_dict($broker, 'en');
var_dump($t);
return $t;
}
$rDict = get_dict($rbroker);
var_dump($rDict);
?>
--EXPECTF--
resource(%d) of type (enchant_dict)
resource(%d) of type (enchant_dict)
resource(%d) of type (enchant_broker)
resource(%d) of type (enchant_broker)
resource(%d) of type (enchant_dict)
resource(%d) of type (enchant_dict)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>