#23939 [NEW]: strpos is case insensitive when it should not be

From: Date: Sun, 01 Jun 2003 18:31:33 +0000
Subject: #23939 [NEW]: strpos is case insensitive when it should not be
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40839@lists.php.net to get a copy of this message
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

« previous php.bugs (#40839) next »