#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):