Update broker_get_error.phpt

This commit is contained in:
marcosptf 2015-08-09 07:31:56 -03:00
parent c9857071d4
commit 4191709915

View File

@ -3,17 +3,18 @@ enchant_broker_get_error() 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");}
?>
--FILE--
<?php
$broker = enchant_broker_init();
if (is_resource($broker)) {
echo("OK\n");
$enchantErr = enchant_broker_get_error($broker);
if ("" == $enchantErr) {
if ("" == $enchantErr) {
echo("OK\n");
} else {
echo("enchant failed ==>" . $enchantErr);