[UTIL][TemporaryFile] Silence warnings in critical section inside TemporaryFile
This commit is contained in:
parent
c4d6df4637
commit
46ff8aacd2
@ -216,8 +216,8 @@ class TemporaryFile extends SplFileInfo
|
||||
},
|
||||
);
|
||||
|
||||
$renamed = rename($this->getPathname(), $destpath);
|
||||
$chmoded = chmod($destpath, $filemode);
|
||||
$renamed = @rename($this->getPathname(), $destpath);
|
||||
$chmoded = @chmod($destpath, $filemode);
|
||||
restore_error_handler();
|
||||
if (!$renamed || !$chmoded) {
|
||||
if (!$existed && file_exists($destpath)) {
|
||||
|
Loading…
Reference in New Issue
Block a user