#34757 [NEW]: iconv_substr produce "Unknown error"

From: Date: Thu, 06 Oct 2005 12:11:48 +0000
Subject: #34757 [NEW]: iconv_substr produce "Unknown error"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86098@lists.php.net to get a copy of this message
From: shagren at ua dot fm Operating system: Win2k PHP version: 5.0.5 PHP Bug Type: ICONV related Bug description: iconv_substr produce "Unknown error" 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 bug report at http://bugs.php.net/?id=34757&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34757&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34757&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34757&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34757&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34757&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34757&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34757&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34757&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34757&r=support Expected behavior: http://bugs.php.net/fix.php?id=34757&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34757&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34757&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34757&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34757&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34757&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34757&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34757&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34757&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34757&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34757&r=mysqlcfg

« previous php.bugs (#86098) next »