diff options
author | Andreas Fischer <bantu@phpbb.com> | 2009-07-17 11:32:27 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2009-07-17 11:32:27 +0000 |
commit | ab9715a9fe5577921180a6f77b5a89b990665b6e (patch) | |
tree | 9852d8dbf94b6a4c10d1e2f23e60d4187e9c14f1 /phpBB/includes/functions_compress.php | |
parent | 6cacfce937c64cae1f90dedef130f3a39fa2c317 (diff) | |
download | forums-ab9715a9fe5577921180a6f77b5a89b990665b6e.tar forums-ab9715a9fe5577921180a6f77b5a89b990665b6e.tar.gz forums-ab9715a9fe5577921180a6f77b5a89b990665b6e.tar.bz2 forums-ab9715a9fe5577921180a6f77b5a89b990665b6e.tar.xz forums-ab9715a9fe5577921180a6f77b5a89b990665b6e.zip |
Fix bugs #46615 & #46945 - Fail gracefully if store folder is not writable during update.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9768 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_compress.php')
-rw-r--r-- | phpBB/includes/functions_compress.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php index 881e1ba5cc..590daabf1d 100644 --- a/phpBB/includes/functions_compress.php +++ b/phpBB/includes/functions_compress.php @@ -155,7 +155,12 @@ class compress_zip extends compress */ function compress_zip($mode, $file) { - return $this->fp = @fopen($file, $mode . 'b'); + $this->fp = @fopen($file, $mode . 'b'); + + if (!$this->fp) + { + trigger_error('Unable to open file ' . $file . ' [' . $mode . 'b]'); + } } /** |