summaryrefslogtreecommitdiff
path: root/ext/mnogosearch
diff options
context:
space:
mode:
authorSergey Kartashoff <gluke@php.net>2003-07-18 08:37:18 +0000
committerSergey Kartashoff <gluke@php.net>2003-07-18 08:37:18 +0000
commit76a6eae91a614fc3908222a8304515fda324c099 (patch)
tree886e74163425c5137aea3382b802de1f062f2290 /ext/mnogosearch
parent13966fdf3e278b676de637b7f060d626c49d63fa (diff)
downloadphp-git-76a6eae91a614fc3908222a8304515fda324c099.tar.gz
- Coredump in Udm_Find was fixed.
Diffstat (limited to 'ext/mnogosearch')
-rw-r--r--ext/mnogosearch/php_mnogo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c
index f5e1c3c0f7..c44668db5f 100644
--- a/ext/mnogosearch/php_mnogo.c
+++ b/ext/mnogosearch/php_mnogo.c
@@ -1895,6 +1895,7 @@ DLEXPORT PHP_FUNCTION(udm_find)
if (zend_get_parameters_ex(2, &yyagent,&yyquery)==FAILURE) {
RETURN_FALSE;
}
+ convert_to_string_ex(yyquery);
}
break;
default:
@@ -1902,7 +1903,6 @@ DLEXPORT PHP_FUNCTION(udm_find)
break;
}
ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, id, "mnoGoSearch-Agent", le_link);
- convert_to_string_ex(yyquery);
#if UDM_VERSION_ID < 30200
if ((Res=UdmFind(Agent,UdmTolower(Z_STRVAL_PP(yyquery),Agent->charset)))) {