[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);
|
$renamed = @rename($this->getPathname(), $destpath);
|
||||||
$chmoded = chmod($destpath, $filemode);
|
$chmoded = @chmod($destpath, $filemode);
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
if (!$renamed || !$chmoded) {
|
if (!$renamed || !$chmoded) {
|
||||||
if (!$existed && file_exists($destpath)) {
|
if (!$existed && file_exists($destpath)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user