From 7e42c73a50e9213c6ee1d65c6efcf49c91afe196 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 27 Sep 2001 00:21:21 +0000 Subject: [PATCH] Another leak bites the dust? --- ext/standard/string.c | 4 ++-- 1 file 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); -- 2.50.1