]> granicus.if.org Git - php/commitdiff
Update broker_get_error.phpt
authormarcosptf <marcosptf@yahoo.com.br>
Sun, 9 Aug 2015 10:31:56 +0000 (07:31 -0300)
committermarcosptf <marcosptf@yahoo.com.br>
Sun, 9 Aug 2015 10:31:56 +0000 (07:31 -0300)
ext/enchant/tests/broker_get_error.phpt

index d547797e17ef963b5f0c1ae33a49fcb834bd2a42..e8d248eca6f730eab2dfd6f7db0a1843fada21dc 100644 (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);