Browse Source

- Fixed bug #53070 (Calling enchant_broker_get_dict_path before set_path crashes php)

pull/12/head
Felipe Pena 16 years ago
parent
commit
946f95c0fc
  1. 4
      ext/enchant/enchant.c

4
ext/enchant/enchant.c

@ -433,6 +433,8 @@ PHP_FUNCTION(enchant_broker_set_dict_path)
if (!value_len) {
RETURN_FALSE;
}
PHP_ENCHANT_GET_BROKER;
switch (dict_type) {
case PHP_ENCHANT_MYSPELL:
@ -466,6 +468,8 @@ PHP_FUNCTION(enchant_broker_get_dict_path)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &broker, &dict_type) == FAILURE) {
RETURN_FALSE;
}
PHP_ENCHANT_GET_BROKER;
switch (dict_type) {
case PHP_ENCHANT_MYSPELL:

Loading…
Cancel
Save