From b7ba9e007d14f4004c733a0b905c384723a4d77f Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Thu, 6 Sep 2001 08:54:54 +0000 Subject: [PATCH] avoid lowercasing the string --- ext/standard/string.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/standard/string.c b/ext/standard/string.c index 03bf7bcba3..2baba7b5ff 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1327,6 +1327,10 @@ PHP_FUNCTION(stristr) zend_get_parameters_ex(2, &haystack, &needle) == FAILURE) { WRONG_PARAM_COUNT; } + + SEPERATE_ZVAL(haystack); + SEPERATE_ZVAL(needle); + convert_to_string_ex(haystack); if (!Z_STRLEN_PP(needle)) { -- 2.50.1