diff options
| author | Sterling Hughes <sterling@php.net> | 2001-09-06 08:54:54 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2001-09-06 08:54:54 +0000 |
| commit | b7ba9e007d14f4004c733a0b905c384723a4d77f (patch) | |
| tree | 5dbd38b346e6140c505730849aeb0f0274f09f9d /ext | |
| parent | 33fc6e2d5f9ee011aec8f80c83edb47035101271 (diff) | |
| download | php-git-b7ba9e007d14f4004c733a0b905c384723a4d77f.tar.gz | |
avoid lowercasing the string
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/string.c | 4 |
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)) { |
