r47361 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47360‎ | r47361 | r47362 >
Date:15:05, 17 February 2009
Author:aaron
Status:ok
Tags:
Comment:
Try to avoid file caching php fatals, it's very annoying
Modified paths:
  • /trunk/phase3/includes/HTMLFileCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/HTMLFileCache.php
@@ -165,7 +165,10 @@
166166 return $origtext; // return to output
167167 }
168168 $text = $origtext;
 169+ // Empty?
169170 if( strcmp($text,'') == 0 ) return '';
 171+ // Probably broken? (OOM and PHP errors)
 172+ if( mb_strlen($text) < 512 ) return $origtext;
170173
171174 wfDebug(" saveToFileCache()\n", false);
172175

Follow-up revisions

RevisionCommit summaryAuthorDate
r47375Follow-up to r47361: code style cleanup (consolidate a couple of duplicated c...brion19:08, 17 February 2009

Status & tagging log