]> granicus.if.org Git - php/commitdiff
avoid lowercasing the string
authorSterling Hughes <sterling@php.net>
Thu, 6 Sep 2001 08:54:54 +0000 (08:54 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 6 Sep 2001 08:54:54 +0000 (08:54 +0000)
ext/standard/string.c

index 03bf7bcba3f59b3f081038472fde568af165ad6d..2baba7b5ffcaf22a4f57213fd6690cd359c9c043 100644 (file)
@@ -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)) {