unbound cloned connection fix

Signed-off-by: Roger Szabo <roger.szabo@web.de>
This commit is contained in:
Roger Szabo 2018-04-27 17:29:15 +08:00 committed by Arthur Schiwon
parent c101ad3a65
commit 8c43834dbc
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class Connection extends LDAPUtility {
public function __clone() {
$this->configuration = new Configuration($this->configPrefix,
!is_null($this->configID));
if(count($this->bindResult) !== 0 && $this->bindResult['result'] === true) {
$this->bindResult = [];
}
$this->ldapConnectionRes = null;
$this->dontDestruct = true;
}