]> granicus.if.org Git - php/commitdiff
MFH: Nuke compiler warning
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 13 May 2009 15:55:12 +0000 (15:55 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 13 May 2009 15:55:12 +0000 (15:55 +0000)
ext/phar/func_interceptors.c

index 56c2a28c4aaf5b140ab2552d19387478e738f2a1..69403c859fc732a75aa666abe0a557ee32234db9 100644 (file)
@@ -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;
                                }