From 72a14e3cdf02fb414b99581628c7ee6c699db908 Mon Sep 17 00:00:00 2001 From: Brett Bieber <brett.bieber@gmail.com> Date: Mon, 6 Dec 2010 21:19:47 +0000 Subject: [PATCH] __wakeup() is not called because arrayiterator implements serializable interface. --- lib/php/UNL/LDAP/Entry/Attribute.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/php/UNL/LDAP/Entry/Attribute.php b/lib/php/UNL/LDAP/Entry/Attribute.php index f3bd288a..8922bf82 100644 --- a/lib/php/UNL/LDAP/Entry/Attribute.php +++ b/lib/php/UNL/LDAP/Entry/Attribute.php @@ -50,11 +50,9 @@ class UNL_LDAP_Entry_Attribute extends ArrayIterator return $this->count; } - public function __wakeup() + public function unserialize($data) { - if (isset($this->storage)) { - parent::__construct($this->storage); - } + parent::unserialize($data); $this->rewind(); } -- GitLab