mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for Ticket #2738, fixes Nesting level too deep error when writing object in CakeSession in php 5.2+
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5286 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9eb563d303
commit
1454a05ee3
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ class CakeSession extends Object {
|
||||||
trigger_error('Writing session key {' . $var . '}: ' . Debugger::exportVar($value), E_USER_NOTICE);
|
trigger_error('Writing session key {' . $var . '}: ' . Debugger::exportVar($value), E_USER_NOTICE);
|
||||||
}
|
}
|
||||||
$this->__overwrite($_SESSION, Set::insert($_SESSION, $var, $value));
|
$this->__overwrite($_SESSION, Set::insert($_SESSION, $var, $value));
|
||||||
return (Set::extract($_SESSION, $var) == $value);
|
return (Set::extract($_SESSION, $var) === $value);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Helper method to destroy invalid sessions.
|
* Helper method to destroy invalid sessions.
|
||||||
|
|
Loading…
Reference in a new issue