need to return stat array

This commit is contained in:
Ralf Becker 2015-04-14 17:25:51 +00:00
parent e6a751e1c5
commit d1038c6d65

View File

@ -2092,7 +2092,7 @@ class Vfs extends Vfs\StreamWrapper
{
$ret = ($dest = self::fopen($target, 'w')) &&
stream_copy_to_stream($tmp_name, $dest) !== false &&
fclose($dest) && self::stat($target);
fclose($dest) ? self::stat($target) : false;
fclose($tmp_name);
}