mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Adding fix from #1316
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3491 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fc54b0f31a
commit
4e3e5df7d6
1 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,8 @@ class Object{
|
||||||
function _savePersistent($name, &$object) {
|
function _savePersistent($name, &$object) {
|
||||||
$file = 'persistent' . DS . strtolower($name) . '.php';
|
$file = 'persistent' . DS . strtolower($name) . '.php';
|
||||||
$objectArray = array(&$object);
|
$objectArray = array(&$object);
|
||||||
$data = '<?php $' . $name . ' = \'' . str_replace('\'', '\\\'', serialize($objectArray)) . '\' ?>';
|
$data = str_replace('\\', '\\\\', serialize($objectArray));
|
||||||
|
$data = '<?php $' . $name . ' = \'' . str_replace('\'', '\\\'', $data) . '\' ?>';
|
||||||
cache($file, $data, '+1 day');
|
cache($file, $data, '+1 day');
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue