From: lana0 at zahav dot net dot il Operating system: XP SP2 PHP version: 5.1.2 PHP Bug Type: ICONV related Bug description: iconv_strpos fails to find a string
Description: ------------ The next statements return FALSE (and should return 1): echo iconv_strpos('11--','1-',0,'UTF-8'); echo iconv_strpos('-11--','1-',0,'UTF-8'); .i.e it fails if the first char of a searched string comes doubled in parsed one. Reproduce code: --------------- echo iconv_strpos('11--','1-',0,'UTF-8'); echo iconv_strpos('-11--','1-',0,'UTF-8'); Expected result: ---------------- 1 2 Actual result: -------------- FALSE FALSE -- Edit bug report at http://bugs.php.net/?id=37176&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37176&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37176&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37176&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37176&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37176&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37176&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37176&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37176&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37176&r=support Expected behavior: http://bugs.php.net/fix.php?id=37176&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37176&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37176&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37176&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37176&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37176&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37176&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37176&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37176&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37176&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37176&r=mysqlcfg