diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 6758b49edb..faca6fd0f9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1360,11 +1360,11 @@ PHP_FUNCTION(stristr) if (found) { found_offset = found - Z_STRVAL_PP(haystack); - RETURN_STRINGL(haystack_orig + found_offset, + RETVAL_STRINGL(haystack_orig + found_offset, Z_STRLEN_PP(haystack) - found_offset, 1); } else { - RETURN_FALSE; + RETVAL_FALSE; } efree(haystack_orig); |