From 0064317223eda041675fba984015f5fc371fa97d Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 25 Aug 2011 22:12:33 -0400 Subject: [PATCH] Removing PHP5.2.6 only mode value, and replacing it with PHP4 & 5 compatible mode. Conflicts: cake/libs/cache/file.php --- cake/libs/cache/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/cache/file.php b/cake/libs/cache/file.php index 24537173064..8d20ed19b17 100644 --- a/cake/libs/cache/file.php +++ b/cake/libs/cache/file.php @@ -142,8 +142,8 @@ function write($key, &$data, $duration) { $expires = time() + $duration; $contents = $expires . $lineBreak . $data . $lineBreak; - if (!$handle = fopen($this->__File->path, 'c')) { - return false; + if (!$handle = fopen($this->__File->path, 'a')) { + return false; } if ($this->settings['lock']) {