#34757 [Ver->Fbk]: iconv_substr produce "Unknown error"

From: Date: Thu, 06 Oct 2005 13:17:48 +0000
Subject: #34757 [Ver->Fbk]: iconv_substr produce "Unknown error"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86118@lists.php.net to get a copy of this message
ID: 34757 Updated by: marcot@php.net Reported By: shagren at ua dot fm -Status: Verified +Status: Feedback Bug Type: ICONV related Operating System: Win2k PHP Version: 5.0.5 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Works from CVS. Previous Comments: ------------------------------------------------------------------------ [2005-10-06 14:11:47] shagren at ua dot fm Description: ------------ For some "small"(or empty) stringes iconv_substr produce error when try to use offset > strlen Reproduce code: --------------- <?php $x = iconv_substr("a",3,2); var_dump($x); ?> Expected result: ---------------- bool(false) Actual result: -------------- PHP Notice: iconv_substr(): Unknown error (0) in C:\temp\1.php on line 2 Notice: iconv_substr(): Unknown error (0) in C:\temp\1.php on line 2 bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34757&edit=1

« previous php.bugs (#86118) next »