diff options
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]'); +		}  	}  	/**  | 
