[OpenIndiana-discuss] php iconv //TRANSLIT error

gerard henry solarg87 at gmail.com
Wed May 4 13:27:02 UTC 2011


do you think that it is the same problem described here:
http://woss.name/2008/10/16/edge-rails-pre-22-iconv-transliteration-and-solaris/

the guy installed  SUNWgnu-libiconv and used LD_PRELOAD. But i can't see how
to do the same thing with apache and php?

2011/5/4 gerard henry <solarg87 at gmail.com>

> hello,
> the problem is present in b134 opensolaris as well, with apache and php
> from SUNW.
>
> gerard
>
>
> 2011/4/28 Gary Gendel <gary at genashor.com>
>
>> I'm trying to get z-push running and I have run into what seems to be a
>> bug in oi_148 (dev_il).
>>
>> After looking at this in detail, it looks like the iconv call is failing.
>> I put together a simple testcase:
>>
>> <?php
>> echo iconv("ISO-8859-1", "UTF-8", "This is a test")
>> ?>
>>
>> This displays "This is a test" in the browser as expected.
>>
>> However,
>>
>> <?php
>> echo iconv("ISO-8859-1", "UTF-8"//TRANSLIT, "This is a test")
>> ?>
>>
>> fails, (as does using //IGNORE instead of //TRANSLIT).  Syslog reports:
>>
>> PHP Notice:  iconv()[<a href='function.iconv'>function.iconv</a>]: Unknown
>> error (22) in /usr/local/apache2/htdocs/tstphp1.php on line 2
>>
>> Googling seems to point to a problem with the OpenIndiana iconv library.
>>  Should we be including giconv and binding with this from php or replacing
>> iconv with giconv?
>>
>> Gary
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>


More information about the OpenIndiana-discuss mailing list