Skip to content
Snippets Groups Projects
Commit 055a09e4 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

On clone create a new instance of the Configuration

To avide effects on the original instance of Connection when the clone
is modified, for instance on authentication checks.
parent 37af74ef
Branches
No related tags found
No related merge requests found
......@@ -78,6 +78,8 @@ class Connection extends LDAPUtility {
//a cloned instance inherits the connection resource. It may use it,
//but it may not disconnect it
$this->dontDestruct = true;
$this->configuration = new Configuration($this->configPrefix,
!is_null($this->configID));
}
public function __get($name) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment