|
|
| version 1.1.1.2, 2012/05/29 12:34:37 | version 1.1.1.3, 2013/07/22 01:31:40 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.0 of the PHP license, | | | This source file is subject to version 3.0 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 23 | Line 23 |
| #include "config.h" | #include "config.h" |
| #endif | #endif |
| #include <enchant.h> | |
| #include "php.h" | #include "php.h" |
| #include "php_ini.h" | #include "php_ini.h" |
| #include "ext/standard/info.h" | #include "ext/standard/info.h" |
| #include <enchant.h> | |
| #include "php_enchant.h" | #include "php_enchant.h" |
| typedef EnchantBroker * EnchantBrokerPtr; | typedef EnchantBroker * EnchantBrokerPtr; |
| Line 651 PHP_FUNCTION(enchant_broker_free_dict) | Line 651 PHP_FUNCTION(enchant_broker_free_dict) |
| /* }}} */ | /* }}} */ |
| /* {{{ proto bool enchant_broker_dict_exists(resource broker, string tag) | /* {{{ proto bool enchant_broker_dict_exists(resource broker, string tag) |
| Wether a dictionary exists or not. Using non-empty tag */ | Whether a dictionary exists or not. Using non-empty tag */ |
| PHP_FUNCTION(enchant_broker_dict_exists) | PHP_FUNCTION(enchant_broker_dict_exists) |
| { | { |
| zval *broker; | zval *broker; |
| Line 730 PHP_FUNCTION(enchant_dict_quick_check) | Line 730 PHP_FUNCTION(enchant_dict_quick_check) |
| if (sugg) { | if (sugg) { |
| zval_dtor(sugg); | zval_dtor(sugg); |
| array_init(sugg); | |
| } | } |
| PHP_ENCHANT_GET_DICT; | PHP_ENCHANT_GET_DICT; |
| Line 742 PHP_FUNCTION(enchant_dict_quick_check) | Line 743 PHP_FUNCTION(enchant_dict_quick_check) |
| if (!sugg && ZEND_NUM_ARGS() == 2) { | if (!sugg && ZEND_NUM_ARGS() == 2) { |
| RETURN_FALSE; | RETURN_FALSE; |
| } | } |
| array_init(sugg); | |
| suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st); | suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st); |
| memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg)); | memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg)); |