/[drupal]/contributions/modules/porterstemmer/porterstemmer.test
ViewVC logotype

Diff of /contributions/modules/porterstemmer/porterstemmer.test

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.4, Wed Oct 21 23:47:22 2009 UTC revision 1.1.2.5, Fri Oct 23 17:42:39 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: porterstemmer.test,v 1.1.2.3 2009/10/21 23:39:54 jhodgdon Exp $  // $Id: porterstemmer.test,v 1.1.2.4 2009/10/21 23:47:22 jhodgdon Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 30  class PorterStemmerOutput1UnitTest exten Line 30  class PorterStemmerOutput1UnitTest exten
30    
31      // See if the PECL stemming library is installed      // See if the PECL stemming library is installed
32    
33      $this->has_pecl_stem = FALSE;      $this->has_pecl_stem = _porterstemmer_pecl_loaded();
   
     if (extension_loaded( 'stem')) {  
       $this->has_pecl_stem = TRUE;  
     }  
     else {  
       // dynamic loading of extensions is going away in PHP 6, so leave this  
       // check here!  
       if (function_exists( 'dl' )) {  
         $this->has_pecl_stem = dl('stem.so');  
       }  
     }  
   
     $this->has_pecl_stem = $this->has_pecl_stem &&  
       function_exists('stem_english');  
   
34    }    }
35    
36    /**    /**

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2