From 18e7a82dd48ec193796e5a503b118078a226cf7e Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 13 May 2009 15:55:12 +0000 Subject: [PATCH] MFH: Nuke compiler warning --- ext/phar/func_interceptors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index 56c2a28c4a..69403c859f 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -98,7 +98,7 @@ PHAR_FUNC(phar_file_get_contents) /* {{{ */ char *contents; zend_bool use_include_path = 0; php_stream *stream; - int len, newlen; + int len; long offset = -1; long maxlen = PHP_STREAM_COPY_ALL; zval *zcontext = NULL; @@ -205,6 +205,7 @@ phar_it: if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { #if PHP_MAJOR_VERSION < 6 if (PG(magic_quotes_runtime)) { + int newlen; contents = php_addslashes(contents, len, &newlen, 1 TSRMLS_CC); /* 1 = free source string */ len = newlen; } -- 2.50.1