#015830: iconv notice in Zend_Search_lucene backend

Description:

The attached script produces "Notice: iconv() [function.iconv]: Detected an illegal character in input string in .../Zend/Search/Lucene/Analysis/Analyzer/Common/Text.php on line 58" for unicode string, like used in the example, when called in a web environment.

It runs fine on the shell, using the common cli or fcgi binary, though. I guess it has something to do with the default encoding detection in iconv / glibc.

Environment: PHP 5.3.0, fcgi, lighttpd.

The attached patch solves this problem. Not sure how to reproduce this in a unit test, though.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
test_search.php (1.1 kb)
[Download] [Permanent Link]
Test case
ezc_search_index.patch (561 b)
[Download] [Permanent Link]
Patch

- Comments

Fixed in rev. 11121.

#263937 by Derick Rethans on November 19th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Search
Affects 1.0.5 - Search 1.0.5
Fix Version 2009.2beta1 - eZ components 2009.2beta1
Reporter Kore Nordmann
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created November 12th, 2009
Updated November 19th, 2009
Resolved November 19th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels