#47856 [Opn->Ver]: stristr converts needle to lower-case
| From: | jani@php.net | Date: | Wed, 01 Apr 2009 10:50:44 +0000 |
| Subject: | #47856 [Opn->Ver]: stristr converts needle to lower-case | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135421@lists.php.net to get a copy of this message | ||
ID: 47856
Updated by: jani@php.net
Reported By: hk at truebridge dot com
-Status: Open
+Status: Verified
Bug Type: Strings related
-Operating System: XP SP3
+Operating System: *
-PHP Version: 5.3.0RC1
+PHP Version: 5.3CVS-2009-04-01
New Comment:
This only happens with PHP_5_3 branch. Both HEAD and PHP_5_2 are not
affected.
Previous Comments:
------------------------------------------------------------------------
[2009-04-01 03:38:07] hk at truebridge dot com
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 this bug report at http://bugs.php.net/?id=47856&edit=1