|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50724 - website/public_html/beta/common/code
From: daniel_james_at_[hidden]
Date: 2009-01-22 05:32:14
Author: danieljames
Date: 2009-01-22 05:32:13 EST (Thu, 22 Jan 2009)
New Revision: 50724
URL: http://svn.boost.org/trac/boost/changeset/50724
Log:
Reactive unzip errors for certain error codes.
Text files modified:
website/public_html/beta/common/code/boost_archive.php | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2009-01-22 05:32:13 EST (Thu, 22 Jan 2009)
@@ -145,10 +145,12 @@
fpassthru($file_handle);
$exit_status = pclose($file_handle);
- // Disable the error message because it was appearing for several files.
- //
- // if($exit_status != 0)
- // echo 'Error extracting file: '.unzip_error($exit_status);
+ // Don't display errors for a corrupt zip file, as we seemd to
+ // be getting them for legitimate files.
+
+ if($exit_status > 3)
+ echo 'Error extracting file: '.unzip_error($exit_status);
+
}
function content()
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk