Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Hotfix for #6089 - protectedProperties of ArrayObject are maintaine…
Browse files Browse the repository at this point in the history
…d on serialization
  • Loading branch information
Ocramius committed Apr 6, 2014
1 parent 11bbc02 commit da29799
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Zend/Stdlib/ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,13 @@ public function uksort($function)
*/
public function unserialize($data)
{
$ar = unserialize($data);
$ar = unserialize($data);
$this->protectedProperties = array_keys(get_object_vars($this));

$this->setFlags($ar['flag']);
$this->exchangeArray($ar['storage']);
$this->setIteratorClass($ar['iteratorClass']);

foreach ($ar as $k => $v) {
switch ($k) {
case 'flag':
Expand Down

0 comments on commit da29799

Please sign in to comment.