summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-09-06 08:54:54 +0000
committerSterling Hughes <sterling@php.net>2001-09-06 08:54:54 +0000
commitb7ba9e007d14f4004c733a0b905c384723a4d77f (patch)
tree5dbd38b346e6140c505730849aeb0f0274f09f9d /ext
parent33fc6e2d5f9ee011aec8f80c83edb47035101271 (diff)
downloadphp-git-b7ba9e007d14f4004c733a0b905c384723a4d77f.tar.gz
avoid lowercasing the string
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/string.c4
1 files changed, 4 insertions, 0 deletions
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)) {