Browse Source

Another leak bites the dust?

experimental/ZendEngine2
Zeev Suraski 25 years ago
parent
commit
7e42c73a50
  1. 4
      ext/standard/string.c

4
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);

Loading…
Cancel
Save