diff options
author | SVN Migration <svn@php.net> | 2008-05-12 21:03:49 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2008-05-12 21:03:49 +0000 |
commit | 16b4d8e0e1108564fa042520171d9091af708d83 (patch) | |
tree | ed242b98e845ea9c045ad6e10b9e9a083b569dd5 /ext/enchant/tests/bug13181.phpt | |
parent | e35c45791383ac9337adcd37255895f396001557 (diff) | |
download | php-git-16b4d8e0e1108564fa042520171d9091af708d83.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PHP_5_3'.
Diffstat (limited to 'ext/enchant/tests/bug13181.phpt')
-rw-r--r-- | ext/enchant/tests/bug13181.phpt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ext/enchant/tests/bug13181.phpt b/ext/enchant/tests/bug13181.phpt new file mode 100644 index 0000000000..38aec636cf --- /dev/null +++ b/ext/enchant/tests/bug13181.phpt @@ -0,0 +1,43 @@ +--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) |