| @@ 1372-1377 (lines=6) @@ | ||
| 1369 | $res = false; |
|
| 1370 | ||
| 1371 | if ($local = $this->getTempFile($path)) { |
|
| 1372 | if (@file_put_contents($local, $content, LOCK_EX) !== false |
|
| 1373 | && ($fp = @fopen($local, 'rb'))) { |
|
| 1374 | clearstatcache(); |
|
| 1375 | $res = $this->_save($fp, $path, '', array()); |
|
| 1376 | @fclose($fp); |
|
| 1377 | } |
|
| 1378 | file_exists($local) && @unlink($local); |
|
| 1379 | } |
|
| 1380 | ||
| @@ 1062-1067 (lines=6) @@ | ||
| 1059 | if ($this->tmp) { |
|
| 1060 | $local = $this->getTempFile(); |
|
| 1061 | ||
| 1062 | if (@file_put_contents($local, $content, LOCK_EX) !== false |
|
| 1063 | && ($fp = @fopen($local, 'rb'))) { |
|
| 1064 | clearstatcache(); |
|
| 1065 | $res = ftp_fput($this->connect, $path, $fp, $this->ftpMode($path)); |
|
| 1066 | @fclose($fp); |
|
| 1067 | } |
|
| 1068 | file_exists($local) && @unlink($local); |
|
| 1069 | } |
|
| 1070 | ||