projects
/
pharext
/
pharext
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
back to dev
[pharext/pharext]
/
src
/
pharext
/
Tempfile.php
diff --git
a/src/pharext/Tempfile.php
b/src/pharext/Tempfile.php
index e7205519ea784869a58c821d132609091a4720c3..2ec68369adeacde9836240b0639d8121568facb2 100644
(file)
--- a/
src/pharext/Tempfile.php
+++ b/
src/pharext/Tempfile.php
@@
-37,7
+37,9
@@
class Tempfile extends \SplFileInfo
* Unlink the file
*/
public function __destruct() {
- @unlink($this->getPathname());
+ if (is_file($this->getPathname())) {
+ @unlink($this->getPathname());
+ }
}
/**