mirror of
https://github.com/php/php-src.git
synced 2024-12-15 21:05:51 +08:00
Update broker_get_error.phpt
This commit is contained in:
parent
c9857071d4
commit
4191709915
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user