diff options
| author | Pierre Joye <pajoye@php.net> | 2009-01-13 13:30:04 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2009-01-13 13:30:04 +0000 |
| commit | d2925999eddb8dbf76427bc543273bb30cc4c91d (patch) | |
| tree | 78661e3b72b44ec139ab7c1f2c3754196e2e3021 /ext/enchant | |
| parent | 1cf59bfb94981b196b034e30c38ba8f500c839ad (diff) | |
| download | php-git-d2925999eddb8dbf76427bc543273bb30cc4c91d.tar.gz | |
- fix build
Diffstat (limited to 'ext/enchant')
| -rwxr-xr-x | ext/enchant/enchant.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c index f47a2b34e3..1cf68ad575 100755 --- a/ext/enchant/enchant.c +++ b/ext/enchant/enchant.c @@ -22,6 +22,8 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include <glib/glist.h> +#include <glib/ghash.h> #include <enchant.h> #include "php.h" #include "php_ini.h" @@ -83,7 +85,7 @@ function_entry enchant_functions[] = { PHP_FE(enchant_dict_store_replacement, NULL) PHP_FE(enchant_dict_get_error, NULL) PHP_FE(enchant_dict_describe, NULL) - PHP_FE(enchant_dict_quick_check, third_arg_force_ref) + PHP_FE(enchant_dict_quick_check, NULL) {NULL, NULL, NULL} /* Must be the last line in enchant_functions[] */ }; @@ -569,13 +571,13 @@ PHP_FUNCTION(enchant_dict_quick_check) PHP_ENCHANT_GET_DICT; if (enchant_dict_check(pdict->pdict, word, wordlen) > 0) { + int n_sugg; + char **suggs; + if (!sugg && ZEND_NUM_ARGS() == 2) { RETURN_FALSE; } - int n_sugg; - char **suggs; - array_init(sugg); suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, (size_t *) &n_sugg); |
