mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
34 lines
735 B
PHP
34 lines
735 B
PHP
--TEST--
|
|
enchant_broker_set_ordering() function
|
|
--CREDITS--
|
|
marcosptf - <marcosptf@yahoo.com.br>
|
|
--EXTENSIONS--
|
|
enchant
|
|
--SKIPIF--
|
|
<?php
|
|
if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
|
|
if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$broker = enchant_broker_init();
|
|
$dicts = enchant_broker_list_dicts($broker);
|
|
$comma = ";";
|
|
|
|
if (is_object($broker)) {
|
|
echo("OK\n");
|
|
if (enchant_broker_set_ordering($broker,$dicts[0]['lang_tag'],$comma)) {
|
|
echo("OK\n");
|
|
} else {
|
|
echo("enchant failed ==>" . $enchantErr);
|
|
}
|
|
} else {
|
|
echo("init failed\n");
|
|
}
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|
|
OK
|
|
OK
|