PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_LDAP » Bug #2985

Recursive delete still not working properly

Details

Submitted2004-12-17 17:54 UTC
Fromrafael at krysciak dot de
Assignedjw
StatusClosed
PackageNet_LDAP
PHP VersionIrrelevant
OSAll
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;
}