diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index 3e18908dd7e1a3e0198c16de602bbc8aec9934b5..584a738085b492fa6af162b79dc48bfc3c648a42 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -39,7 +39,7 @@ require_once __DIR__ . '/LDAP3/Result.php'; * * @package Net_LDAP3 */ -class Net_LDAP3 implements Serializable +class Net_LDAP3 { const CONTROL_EFFECTIVE_RIGHTS = '1.3.6.1.4.1.42.2.27.9.5.2'; @@ -95,6 +95,16 @@ class Net_LDAP3 implements Serializable 'vlv' => null, ]; + public function __serialize() : array + { + return $this->config; + } + + public function __unserialize($data) + { + $this->config = $data; + } + protected $debug_level = false; protected $list_page = 1; protected $page_size = 10;