Ignore warning on fopen

This commit is contained in:
Jérémy Derussé 2014-09-04 23:09:17 +02:00
parent f940d92a32
commit b30317e5f3

View File

@ -56,7 +56,7 @@ class Filesystem
}
// Stream context created to allow files overwrite when using FTP stream wrapper - disabled by default
if (false === $target = fopen($targetFile, 'w', null, stream_context_create(array('ftp' => array('overwrite' => true))))) {
if (false === $target = @fopen($targetFile, 'w', null, stream_context_create(array('ftp' => array('overwrite' => true))))) {
throw new IOException(sprintf('Failed to copy "%s" to "%s" because target file could not be opened for writing.', $originFile, $targetFile), 0, null, $originFile);
}