git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6150 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-14 07:18:59 +00:00
parent 2a310b36e3
commit df66228142

View file

@ -126,8 +126,13 @@ class FileEngine extends CacheEngine {
if ($duration == null) {
$duration = $this->settings['duration'];
}
if (!empty($this->settings['serialize'])) {
$data = serialize($data);
if (substr(PHP_OS, 0, 3) == "WIN") {
$data = str_replace('\\', '\\\\\\\\', serialize($data));
} else {
$data = serialize($data);
}
}
if ($this->settings['lock']) {