Skip to content

Commit

Permalink
Removing PHP5.2.6 only mode value, and replacing it with PHP4 & 5 com…
Browse files Browse the repository at this point in the history
…patible

mode.

Conflicts:

	cake/libs/cache/file.php
  • Loading branch information
markstory committed Aug 26, 2011
1 parent e3b4a35 commit 0064317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cache/file.php
Expand Up @@ -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']) {
Expand Down

0 comments on commit 0064317

Please sign in to comment.