From: Kalle Sommer Nielsen Date: Wed, 13 May 2009 15:55:12 +0000 (+0000) Subject: MFH: Nuke compiler warning X-Git-Tag: php-5.3.0RC3~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18e7a82dd48ec193796e5a503b118078a226cf7e;p=php MFH: Nuke compiler warning --- 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; }