Edit report at https://bugs.php.net/bug.php?id=61484&edit=1

 ID:                 61484
 Updated by:         larue...@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:

this should be a issue of glibc, but I am not sure since when it has been 
changed. :(


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to