diff options
Diffstat (limited to 'ext/phar')
-rw-r--r-- | ext/phar/func_interceptors.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index c0b03e5838..5080ddf7c8 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -203,14 +203,8 @@ phar_it: /* uses mmap if possible */ if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { -#if PHP_API_VERSION < 20100412 - if (PG(magic_quotes_runtime)) { - int newlen; - contents = php_addslashes(contents, len, &newlen, 1 TSRMLS_CC); /* 1 = free source string */ - len = newlen; - } -#endif RETVAL_STRINGL(contents, len, 0); + efree(contents); } else if (len == 0) { RETVAL_EMPTY_STRING(); } else { |