From: Sterling Hughes Date: Thu, 6 Sep 2001 08:54:54 +0000 (+0000) Subject: avoid lowercasing the string X-Git-Tag: PRE_SUBST_Z_MACROS~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ba9e007d14f4004c733a0b905c384723a4d77f;p=php avoid lowercasing the string --- 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)) {