]> granicus.if.org Git - php/commitdiff
- drop unused var and fix example
authorPierre Joye <pajoye@php.net>
Sat, 3 Oct 2009 10:19:06 +0000 (10:19 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 3 Oct 2009 10:19:06 +0000 (10:19 +0000)
ext/enchant/docs/examples/example1.php
ext/enchant/enchant.c

index 9d503f74e66d381404ecf553132f9244d4fa6643..61923996d21da6ddadad633531c36130a78532e4 100644 (file)
@@ -13,7 +13,7 @@ if (enchant_broker_dict_exists($r,$tag)) {
        $spellerrors = enchant_dict_check($d, "soong");
        print_r($dprovides);
        echo "found $spellerrors spell errors\n";
-       if ($spellerrors) {
+       if (!$spellerrors) {
                $suggs = enchant_dict_suggest($d, "soong");
                echo "Suggestions for 'soong':";
                print_r($suggs);
index 20d6c7d2eea18cb3683229e608c6494b9ee98052..838414faaefcc1c3ff43b22942737cb54f9e75f6 100755 (executable)
@@ -405,8 +405,6 @@ PHP_FUNCTION(enchant_broker_list_dicts)
        enchant_broker *pbroker;
        EnchantDictDescribeFn describetozval = php_enchant_list_dicts_fn;
 
-       char *msg;
-
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &broker) == FAILURE) {
                RETURN_FALSE;
        }