diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-13 15:55:12 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-13 15:55:12 +0000 |
commit | 18e7a82dd48ec193796e5a503b118078a226cf7e (patch) | |
tree | 552368086715e293b5cb3d93ac9c931288abd48a | |
parent | 46e28fb0213ca315067893639280b9e49fe1feee (diff) | |
download | php-git-18e7a82dd48ec193796e5a503b118078a226cf7e.tar.gz |
MFH: Nuke compiler warning
-rw-r--r-- | ext/phar/func_interceptors.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |