From: tony at marston-home dot demon dot co dot uk Operating system: WindowsXP PHP version: 4.3.2 PHP Bug Type: Strings related Bug description: strpos is case insensitive when it should not be
$haystack contains "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" so why does $pos = strpos($haystack, 's'); return me the position of 'S' instead of 's'? If I wanted a case insensitive search I would use stripos instead. -- Edit bug report at http://bugs.php.net/?id=23939&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23939&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23939&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23939&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23939&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23939&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23939&r=support Expected behavior: http://bugs.php.net/fix.php?id=23939&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23939&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23939&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23939&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23939&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23939&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23939&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23939&r=gnused