dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8653947
)
Try to avoid file caching php fatals, it's very annoying
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 17 Feb 2009 15:05:23 +0000
(15:05 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 17 Feb 2009 15:05:23 +0000
(15:05 +0000)
includes/HTMLFileCache.php
patch
|
blob
|
history
diff --git
a/includes/HTMLFileCache.php
b/includes/HTMLFileCache.php
index
e267962
..
ce4c11a
100644
(file)
--- a/
includes/HTMLFileCache.php
+++ b/
includes/HTMLFileCache.php
@@
-165,7
+165,10
@@
class HTMLFileCache {
return $origtext; // return to output
}
$text = $origtext;
+ // Empty?
if( strcmp($text,'') == 0 ) return '';
+ // Probably broken? (OOM and PHP errors)
+ if( mb_strlen($text) < 512 ) return $origtext;
wfDebug(" saveToFileCache()\n", false);