From: Kalle Sommer Nielsen Date: Wed, 13 May 2009 15:54:48 +0000 (+0000) Subject: Nuke compiler warning X-Git-Tag: php-5.4.0alpha1~191^2~3675 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2ad70135756d1806b6fbf40abdfe29c6844a905;p=php Nuke compiler warning --- diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index cb08730233..cddd7a0933 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; }