com php-src: Update broker_set_ordering.phpt: ext/enc hant/tests/broker_set_ordering.phpt

From: Date: Sun, 09 Aug 2015 10:48:51 +0000
Subject: com php-src: Update broker_set_ordering.phpt: ext/enc hant/tests/broker_set_ordering.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88422@lists.php.net to get a copy of this message
Commit: c2bc1066082ab2d419e8596516547983666022cd Author: marcosptf <marcosptf@yahoo.com.br> Sun, 9 Aug 2015 07:48:51 -0300 Parents: 018c412b5c46012dc34f57bf0d9f37998a0804b0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c2bc1066082ab2d419e8596516547983666022cd Log: Update broker_set_ordering.phpt Changed paths: M ext/enchant/tests/broker_set_ordering.phpt Diff: diff --git a/ext/enchant/tests/broker_set_ordering.phpt b/ext/enchant/tests/broker_set_ordering.phpt index 8e8f8e9..c3cb207 100644 --- a/ext/enchant/tests/broker_set_ordering.phpt +++ b/ext/enchant/tests/broker_set_ordering.phpt @@ -3,18 +3,20 @@ enchant_broker_set_ordering() function --CREDITS-- marcosptf - <marcosptf@yahoo.com.br> --SKIPIF-- -<?php +<?php if(!extension_loaded('enchant')) die('skip, enchant not loader'); +if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} +if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} ?> --FILE-- <?php $broker = enchant_broker_init(); -$lang = "us_US"; +$dicts = enchant_broker_list_dicts($broker); $comma = ";"; if (is_resource($broker)) { echo("OK\n"); - if (enchant_broker_set_ordering($broker,$lang,$comma)) { + if (enchant_broker_set_ordering($broker,$dicts[0]['lang_tag'],$comma)) { echo("OK\n"); } else { echo("enchant failed ==>" . $enchantErr);

« previous php.cvs (#88422) next »