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:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 ! ">
|
||||
|
||||
Reference in New Issue
Block a user