Bug #61484 [Com]: iconv //IGNORE option doesn't work anymore in PHP5.4
| From: | laruence@php.net | Date: | Fri, 23 Mar 2012 07:11:10 +0000 |
| Subject: | Bug #61484 [Com]: iconv //IGNORE option doesn't work anymore in PHP5.4 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168750@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61484&edit=1
ID: 61484
Comment by: laruence@php.net
Reported by: juzna dot cz at gmail dot com
Summary: iconv //IGNORE option doesn't work anymore in PHP5.4
Status: Open
Type: Bug
Package: ICONV related
Operating System: Ubuntu
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
see http://sources.redhat.com/bugzilla/show_bug.cgi?id=13518
Previous Comments:
------------------------------------------------------------------------
[2012-03-23 07:01:36] laruence@php.net
this should be a issue of glibc, but I am not sure since when it has been
changed. :(
------------------------------------------------------------------------
[2012-03-22 23:59:36] juzna dot cz at gmail dot com
Description:
------------
When adding "//IGNORE" to target encoding in iconv function, wrong characters
should be skipped. This worked in PHP 5.3, but doesn't work anymore in 5.4.
I just compiled 5.3.10, where it works fine. Doesn't work on 5.4.0 nor on 5.4.1-
RC1.
Test script:
---------------
var_dump(iconv('UTF-8', 'UTF-16//IGNORE',
"\xc5\xbea\x01b\xed\xa0\x80c\xef\xbb\xbfd\xf4\x90\x80\x80e"));
Expected result:
----------------
string(18) "��~abc��de"
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61484&edit=1