ID: 47856 Updated by: j...@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