projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9dc878
)
- Fixed bug #53070 (Calling enchant_broker_get_dict_path before set_path crashes...
author
Felipe Pena
<felipe@php.net>
Sat, 16 Oct 2010 17:52:01 +0000
(17:52 +0000)
committer
Felipe Pena
<felipe@php.net>
Sat, 16 Oct 2010 17:52:01 +0000
(17:52 +0000)
ext/enchant/enchant.c
patch
|
blob
|
history
diff --git
a/ext/enchant/enchant.c
b/ext/enchant/enchant.c
index 645239427dbe22b4b8cb55e7c0796f76def2e0ec..90a75bf8eae376648a8209d02a16a18d8c21d090 100755
(executable)
--- 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: