]> granicus.if.org Git - php/commitdiff
Update dict_check.phpt
authormarcosptf <marcosptf@yahoo.com.br>
Mon, 10 Aug 2015 17:14:13 +0000 (14:14 -0300)
committermarcosptf <marcosptf@yahoo.com.br>
Mon, 10 Aug 2015 17:14:13 +0000 (14:14 -0300)
ext/enchant/tests/dict_check.phpt

index 75e7790562d9a3725cf9dab4565f2321186b3f8f..fd5cf45b34caa486d69bb904cfba390f9b225c89 100644 (file)
@@ -20,12 +20,13 @@ if (is_resource($broker)) {
     
     if ($requestDict) {
         echo("OK\n");
+        enchant_dict_add_to_personal($requestDict, $newWord);
       
-        if (enchant_dict_check($requestDict,$newWord)) {
+        if (enchant_dict_check($requestDict, $newWord)) {
             echo("OK\n");
             
         } else {
-            echo("dict add to personal failed\n");
+            echo("dict check new word failed\n");
         }
         
     } else {