diff options
| author | Felipe Pena <felipe@php.net> | 2010-10-16 17:52:01 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2010-10-16 17:52:01 +0000 |
| commit | c88dbc2262dd0bd189c46b50bf112c9475be85d5 (patch) | |
| tree | 4a5ad5650357aa31d6b847321ea9b7a939c511ab | |
| parent | e9dc8785a9cedceb09ae7e8adcd0189b6d7bb2c3 (diff) | |
| download | php-git-c88dbc2262dd0bd189c46b50bf112c9475be85d5.tar.gz | |
- Fixed bug #53070 (Calling enchant_broker_get_dict_path before set_path crashes php)
| -rwxr-xr-x | ext/enchant/enchant.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c index 645239427d..90a75bf8ea 100755 --- a/ext/enchant/enchant.c +++ b/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: |
