1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00

Udm_Api_Version function has been added.

Example updated.
This commit is contained in:
Sergey Kartashoff
2001-03-01 13:38:39 +00:00
parent 423fcaf2dc
commit cfe2412081
3 changed files with 16 additions and 0 deletions
+11
View File
@@ -99,6 +99,8 @@ static int le_link,le_res;
#include <udmsearch.h>
function_entry mnogosearch_functions[] = {
PHP_FE(udm_api_version, NULL)
PHP_FE(udm_alloc_agent, NULL)
PHP_FE(udm_set_agent_param, NULL)
@@ -1044,6 +1046,15 @@ DLEXPORT PHP_FUNCTION(udm_error)
/* }}} */
/* {{{ proto int udm_api_version()
Get mnoGoSearch API version */
DLEXPORT PHP_FUNCTION(udm_api_version)
{
RETURN_LONG(UDM_VERSION_ID);
}
/* }}} */
#if UDM_VERSION_ID > 30110
/* {{{ proto int udm_get_doc_count(int agent)
Get total number of documents in database */
+2
View File
@@ -49,6 +49,8 @@ DLEXPORT PHP_RINIT_FUNCTION(mnogosearch);
DLEXPORT PHP_MSHUTDOWN_FUNCTION(mnogosearch);
DLEXPORT PHP_MINFO_FUNCTION(mnogosearch);
DLEXPORT PHP_FUNCTION(udm_api_version);
DLEXPORT PHP_FUNCTION(udm_alloc_agent);
DLEXPORT PHP_FUNCTION(udm_set_agent_param);
+3
View File
@@ -6,6 +6,9 @@
<html>
<body>
mnoGoSearch API version: <? echo Udm_Api_Version(); ?>
<br>
<form method=post>
<input type=text size=30 name=q value="<? echo htmlspecialchars(stripslashes($q)); ?>">
<input type=submit value=" Search ! ">