Commit a5993f16 authored by Dainis Abols's avatar Dainis Abols
Browse files

LDAP Connection close changes

parent 315ac467
......@@ -37,6 +37,20 @@ class LDAP
*/
private $conn;
/**
* Fetch resource
*/
public function getConn()
{
return $this->conn;
}
public function delConn()
{
@ldap_close($this->conn);
$this->conn = null;
}
/**
* LDAP constructor.
*/
......@@ -55,7 +69,7 @@ class LDAP
*/
public function __destruct()
{
ldap_close($this->conn);
$this->delConn();
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment