cmb)
. Fixed bug #79271 (DOMDocumentType::$childNodes is NULL). (cmb)
+- Enchant:
+ . Fixed bug #79311 (enchant_dict_suggest() fails on big endian architecture).
+ (cmb)
+
- MySQLi:
. Fixed bug #64032 (mysqli reports different client_version). (cmb)
PHP_ENCHANT_GET_DICT;
if (enchant_dict_check(pdict->pdict, word, wordlen) > 0) {
- int n_sugg;
- size_t n_sugg_st;
+ size_t n_sugg;
char **suggs;
if (!sugg && ZEND_NUM_ARGS() == 2) {
RETURN_FALSE;
}
- suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st);
- memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg));
+ suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg);
if (suggs && n_sugg) {
- int i;
+ size_t i;
for (i = 0; i < n_sugg; i++) {
add_next_index_string(sugg, suggs[i]);
}
size_t wordlen;
char **suggs;
enchant_dict *pdict;
- int n_sugg;
- size_t n_sugg_st;
+ size_t n_sugg;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &dict, &word, &wordlen) == FAILURE) {
RETURN_FALSE;
PHP_ENCHANT_GET_DICT;
- suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st);
- memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg));
+ suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg);
if (suggs && n_sugg) {
- int i;
+ size_t i;
array_init(return_value);
for (i = 0; i < n_sugg; i++) {