#47856 [NEW]: stristr converts needle to lower-case
| From: | hk at truebridge dot com | Date: | Wed, 01 Apr 2009 03:38:07 +0000 |
| Subject: | #47856 [NEW]: stristr converts needle to lower-case | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-135416@lists.php.net to get a copy of this message | ||
From: hk at truebridge dot com
Operating system: XP SP3
PHP version: 5.3.0RC1
PHP Bug Type: Strings related
Bug description: stristr converts needle to lower-case
Description:
------------
stristr converts needle to lower-case
Problem occurs on XP SP3
This does not happen on PHP 5.2.8 on FreeBSD 7.1
Reproduce code:
---------------
$haystack = "HAYSTACK";
$needle = "NEEDLE";
stristr( $haystack,$needle);
echo $haystack; // --> HAYSTACK
echo $needle; // --> needle
Expected result:
----------------
HAYSTACK
NEEDLE
Actual result:
--------------
HAYSTACK
needle
--
Edit bug report at http://bugs.php.net/?id=47856&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47856&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47856&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47856&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47856&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47856&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47856&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47856&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47856&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47856&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47856&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47856&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47856&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47856&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47856&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47856&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47856&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47856&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47856&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47856&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47856&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47856&r=mysqlcfg