mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
This commit is contained in:
		
						commit
						35ca82af13
					
				|  | @ -127,19 +127,12 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document { | |||
| 			$mimetype = $version->getMimeType(); | ||||
| 			if(isset($_convcmd[$mimetype])) { | ||||
| 				$cmd = sprintf($_convcmd[$mimetype], $path); | ||||
| 				$content = self::execWithTimeout($cmd, $timeout); | ||||
| 				/* | ||||
| 				$fp = popen($cmd, 'r'); | ||||
| 				if($fp) { | ||||
| 					$content = ''; | ||||
| 					while(!feof($fp)) { | ||||
| 						$content .= fread($fp, 2048); | ||||
| 				try { | ||||
| 					$content = self::execWithTimeout($cmd, $timeout); | ||||
| 					if($content) { | ||||
| 						$this->addField(Zend_Search_Lucene_Field::UnStored('content', $content, 'utf-8')); | ||||
| 					} | ||||
| 					pclose($fp); | ||||
| 				} | ||||
| 				 */ | ||||
| 				if($content) { | ||||
| 					$this->addField(Zend_Search_Lucene_Field::UnStored('content', $content, 'utf-8')); | ||||
| 				} catch (Exception $e) { | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
|  | @ -11,11 +11,11 @@ | |||
|   <email>uwe@steinmann.cx</email> | ||||
|   <active>yes</active> | ||||
|  </lead> | ||||
|  <date>2016-04-28</date> | ||||
|  <time>08:11:19</time> | ||||
|  <date>2017-03-01</date> | ||||
|  <time>15:55:32</time> | ||||
|  <version> | ||||
|   <release>1.1.9</release> | ||||
|   <api>1.1.7</api> | ||||
|   <release>1.1.10</release> | ||||
|   <api>1.1.10</api> | ||||
|  </version> | ||||
|  <stability> | ||||
|   <release>stable</release> | ||||
|  | @ -23,8 +23,7 @@ | |||
|  </stability> | ||||
|  <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|  <notes> | ||||
| pass variables to stream_select() to fullfill strict standards. | ||||
| make all functions in Indexer.php static | ||||
| catch exception in execWithTimeout() | ||||
|  </notes> | ||||
|  <contents> | ||||
|   <dir baseinstalldir="SeedDMS" name="/"> | ||||
|  | @ -235,5 +234,22 @@ add command for indexing postѕcript files | |||
| set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 | ||||
|    </notes> | ||||
|   </release> | ||||
|   <release> | ||||
|    <date>2016-04-28</date> | ||||
|    <time>08:11:19</time> | ||||
|    <version> | ||||
|     <release>1.1.9</release> | ||||
|     <api>1.1.7</api> | ||||
|    </version> | ||||
|    <stability> | ||||
|     <release>stable</release> | ||||
|     <api>stable</api> | ||||
|    </stability> | ||||
|    <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|    <notes> | ||||
| pass variables to stream_select() to fullfill strict standards. | ||||
| make all functions in Indexer.php static | ||||
|    </notes> | ||||
|   </release> | ||||
|  </changelog> | ||||
| </package> | ||||
|  |  | |||
|  | @ -133,9 +133,12 @@ class SeedDMS_SQLiteFTS_IndexedDocument extends SeedDMS_SQLiteFTS_Document { | |||
| 			$mimetype = $version->getMimeType(); | ||||
| 			if(isset($_convcmd[$mimetype])) { | ||||
| 				$cmd = sprintf($_convcmd[$mimetype], $path); | ||||
| 				$content = self::execWithTimeout($cmd, $timeout); | ||||
| 				if($content) { | ||||
| 					$this->addField('content', $content, 'unstored'); | ||||
| 				try { | ||||
| 					$content = self::execWithTimeout($cmd, $timeout); | ||||
| 					if($content) { | ||||
| 						$this->addField('content', $content, 'unstored'); | ||||
| 					} | ||||
| 				} catch (Exception $e) { | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
|  | @ -11,11 +11,11 @@ | |||
|   <email>uwe@steinmann.cx</email> | ||||
|   <active>yes</active> | ||||
|  </lead> | ||||
|  <date>2016-03-29</date> | ||||
|  <time>08:09:48</time> | ||||
|  <date>2017-03-01</date> | ||||
|  <time>15:53:24</time> | ||||
|  <version> | ||||
|   <release>1.0.6</release> | ||||
|   <api>1.0.1</api> | ||||
|   <release>1.0.7</release> | ||||
|   <api>1.0.7</api> | ||||
|  </version> | ||||
|  <stability> | ||||
|   <release>stable</release> | ||||
|  | @ -23,7 +23,7 @@ | |||
|  </stability> | ||||
|  <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|  <notes> | ||||
| fix calculation of timeout (see bug #269) | ||||
| catch exception in execWithTimeout() | ||||
|  </notes> | ||||
|  <contents> | ||||
|   <dir baseinstalldir="SeedDMS" name="/"> | ||||
|  | @ -162,5 +162,21 @@ make it work with sqlite3 < 3.8.0 | |||
| set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 | ||||
|    </notes> | ||||
|   </release> | ||||
|   <release> | ||||
|    <date>2016-03-29</date> | ||||
|    <time>08:09:48</time> | ||||
|    <version> | ||||
|     <release>1.0.6</release> | ||||
|     <api>1.0.1</api> | ||||
|    </version> | ||||
|    <stability> | ||||
|     <release>stable</release> | ||||
|     <api>stable</api> | ||||
|    </stability> | ||||
|    <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|    <notes> | ||||
| fix calculation of timeout (see bug #269) | ||||
|    </notes> | ||||
|   </release> | ||||
|  </changelog> | ||||
| </package> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann