Home » Networking » Net_LDAP » Bug #2985
Recursive delete still not working properly
Details
| Submitted | 2004-12-17 17:54 UTC |
|---|---|
| From | rafael at krysciak dot de |
| Assigned | jw |
| Status | Closed |
| Package | Net_LDAP |
| PHP Version | Irrelevant |
| OS | All |
| Roadmaps | (Not assigned) |
Comments
[2004-12-17 17:54 UTC] rafael at krysciak dot de
Description:
------------
The delete function provides the functionality of deleting whole subtrees when an array with the value 'recursive' is passed.
When doing so the function doesn't delete the root dn of subtree, but all children.
Removing the else statement would fix this. See the code sniplet in the reproduce section
Reproduce code:
---------------
function delete($dn, $param = array())
{
...
if ($param['recursive'] ) {
...
} // here was the else
if (!@ldap_delete($this->_link, $dn)) {
...
}
return true;
}