]> granicus.if.org Git - php/commitdiff
Another leak bites the dust?
authorZeev Suraski <zeev@php.net>
Thu, 27 Sep 2001 00:21:21 +0000 (00:21 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 27 Sep 2001 00:21:21 +0000 (00:21 +0000)
ext/standard/string.c

index 6758b49edb59318185f81d206563f5ee725c085b..faca6fd0f90e420bd18e3c52f4f131ff4a7bc5ff 100644 (file)
@@ -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);