From: Brion Vibber Date: Sun, 8 Aug 2004 10:15:20 +0000 (+0000) Subject: Fix for file cache on PHP 4.1.2. The text string seems to be passed by X-Git-Tag: 1.5.0alpha1~2470 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=93fcbccb727e1969add028d75352e01e1c25088c;p=lhc%2Fweb%2Fwiklou.git Fix for file cache on PHP 4.1.2. The text string seems to be passed by references, and changing it screws things royally; instead make a copy. --- diff --git a/includes/CacheManager.php b/includes/CacheManager.php index e85f69d94b..7a681140da 100644 --- a/includes/CacheManager.php +++ b/includes/CacheManager.php @@ -110,7 +110,8 @@ class CacheManager { if(!file_exists($mydir2)) { mkdir($mydir2,0775); } } - function saveToFileCache( $text ) { + function saveToFileCache( $origtext ) { + $text = $origtext; if(strcmp($text,'') == 0) return ''; wfDebug(" saveToFileCache()\n", false);