Bug #52211 [Com]: iconv() returns part of string on error

From: Date: Fri, 10 Dec 2010 11:39:00 +0000
Subject: Bug #52211 [Com]: iconv() returns part of string on error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156869@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52211&edit=1 ID: 52211 Comment by: raphgivernaud at yahoo dot fr Reported by: raphgivernaud at yahoo dot fr Summary: iconv() returns part of string on error Status: Closed Type: Bug Package: ICONV related Operating System: Windows Vista PHP Version: 5.3.2 Assigned To: felipe Block user comment: N Private report: N New Comment: Ok, sorry Previous Comments: ------------------------------------------------------------------------ [2010-12-10 12:20:51] felipe@php.net Yes, as I mentioned, the fix was committed on trunk, not in 5.3 branch. ------------------------------------------------------------------------ [2010-12-10 10:55:48] raphgivernaud at yahoo dot fr Hello, In version 5.3.3 and 5.3.4, the problem is still not resolved ------------------------------------------------------------------------ [2010-07-01 03:15:19] felipe@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. This bug has been only fixed on trunk, because from what I can see, it might cause BC issue on 5.3 series. ------------------------------------------------------------------------ [2010-07-01 03:11:10] felipe@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=300894 Log: - Fixed bug #52211 (iconv() returns part of string on error) ------------------------------------------------------------------------ [2010-06-30 15:27:19] raphgivernaud at yahoo dot fr Description: ------------ When the function fails because of illegal characters, the function never returns false Test script: --------------- <?php $str = "PATHOLOGIES MÉDICO-CHIRUR. ADUL. PL"; $str_iconv = iconv('CP850', 'ISO-8859-1', $str ); var_dump($str_iconv); ?> Expected result: ---------------- bool(false) Actual result: -------------- string(13) "PATHOLOGIES M" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52211&edit=1

« previous php.bugs (#156869) next »