projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e995304
)
hide error on open - still happens occasionally, even though we have done loads of...
author
Alan
<alan@roojs.com>
Fri, 22 Apr 2022 07:39:09 +0000
(15:39 +0800)
committer
Alan
<alan@roojs.com>
Fri, 22 Apr 2022 07:39:09 +0000
(15:39 +0800)
File/Convert.php
patch
|
blob
|
history
diff --git
a/File/Convert.php
b/File/Convert.php
index
b63d201
..
b51cbb0
100644
(file)
--- a/
File/Convert.php
+++ b/
File/Convert.php
@@
-304,9
+304,11
@@
class File_Convert
exit;
}
//var_dump($fn, $mt); exit;
-
header('Content-type: '. $mt);
+ header('Content-type: '. $mt);
- $fh = fopen($fn, 'rb');
+
+ // even though we have done a file_exists above - it still errors out here occausionally.
+ $fh = @fopen($fn, 'rb');
//fpassthru($fh);
// passthrough seems to have problems -- trying fread
@@
-322,7
+324,7
@@
class File_Convert
}
if ($delete_after) {
- unlink($fn);
+
@
unlink($fn);
}
exit;