From: Ilia Alshanetsky Date: Thu, 20 Jan 2011 19:32:36 +0000 (+0000) Subject: Fixed variable overloading X-Git-Tag: php-5.3.6RC1~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4c468481a8bf53d2042fc27fe7416b6caa1ab75;p=php Fixed variable overloading --- diff --git a/ext/phar/zip.c b/ext/phar/zip.c index afda167a21..fa3642f5c7 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -1434,9 +1434,9 @@ nocentralerror: php_stream_seek(pass.centralfp, 0, SEEK_SET); { - size_t len; - int ret = phar_stream_copy_to_stream(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &len); - if (SUCCESS != ret || len != cdir_size) { + size_t clen; + int ret = phar_stream_copy_to_stream(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &clen); + if (SUCCESS != ret || clen != cdir_size) { if (error) { spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write central-directory", phar->fname); }