mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
"Fixes #3682"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6150 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2a310b36e3
commit
df66228142
1 changed files with 6 additions and 1 deletions
7
cake/libs/cache/file.php
vendored
7
cake/libs/cache/file.php
vendored
|
@ -126,8 +126,13 @@ class FileEngine extends CacheEngine {
|
||||||
if ($duration == null) {
|
if ($duration == null) {
|
||||||
$duration = $this->settings['duration'];
|
$duration = $this->settings['duration'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->settings['serialize'])) {
|
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']) {
|
if ($this->settings['lock']) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue