]> granicus.if.org Git - php/commitdiff
@- Added support for word match mnogosearch-3.2 command and for stopfile
authorSergey Kartashoff <gluke@php.net>
Mon, 8 Oct 2001 16:50:13 +0000 (16:50 +0000)
committerSergey Kartashoff <gluke@php.net>
Mon, 8 Oct 2001 16:50:13 +0000 (16:50 +0000)
@  command. StopTable will not be supported by mnogosearch-3.2.x
- Added support for word match mnogosearch-3.2 command and for stopfile
  command. StopTable will not be supported by mnogosearch-3.2.x

ext/mnogosearch/php_mnogo.c

index c86eb4d09cbe41c549aee87eb3a9c7d3ee2a3585..fb386cb4e828b4ff4a62ff88e7618a67af6f3b34 100644 (file)
@@ -486,7 +486,6 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
                        break;
 
                case UDM_PARAM_WORD_MATCH:
-#if UDM_VERSION_ID < 30200                                             
                        switch (atoi(val)){
                                        case UDM_MATCH_WORD:                                    
                                                Agent->word_match=UDM_MATCH_WORD;
@@ -511,7 +510,6 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
                                                RETURN_FALSE;
                                                break;
                        }
-#endif                 
                        break;
                case UDM_PARAM_CACHE_MODE: 
                        switch (atoi(val)){
@@ -640,12 +638,10 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
                        break;
 
                case UDM_PARAM_STOPFILE: 
-#if UDM_VERSION_ID < 30200                                                             
                        if (UdmFileLoadStopList(Agent->Conf,val)) {
                                php_error(E_WARNING,Agent->Conf->errstr);
                                RETURN_FALSE;
                        }
-#endif                     
                        break;
                        
                case UDM_PARAM_WEIGHT_FACTOR: