summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-09-27 00:21:21 +0000
committerZeev Suraski <zeev@php.net>2001-09-27 00:21:21 +0000
commit7e42c73a50e9213c6ee1d65c6efcf49c91afe196 (patch)
tree6535a98b9079050a0364a3706e19c25bb23bed42
parentba670f561ecd85e1c7c209016348cb02c1694004 (diff)
downloadphp-git-7e42c73a50e9213c6ee1d65c6efcf49c91afe196.tar.gz
Another leak bites the dust?
-rw-r--r--ext/standard/string.c4
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);