PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_LDAP » Bug #6685

i need to sort the result of net_ldap::search

Details

Request #6685i need to sort the result of net_ldap::search
Submitted2006-02-03 13:58 UTC
Fromdboukari at sqli dot com
Assigneddelatbabel
StatusClosed
PackageNet_LDAP
PHP Version4.3.3
OSlinux or windows
Roadmaps(Not assigned)

Comments

[2006-02-03 13:58 UTC] dboukari at sqli dot com

Description:
------------
can you add an optional parameter for order the result net_ldap::search
Actually it's that:
function search($base = null, $filter = null, $params = array()){
....
...
else{
@$obj = & new Net_LDAP_Search($search, $this->_link);
return $obj;
}
}

But i would like to transforme like this:

function search($base = null, $filter = null, $params = array(),$lsSort=null){
....
...
else{
if(is_null($lsSort)){
ldap_sort($this->_link,$search,$lsSort);
}
@$obj = & new Net_LDAP_Search($search,
$this->_link);
return $obj;
}
}

[2006-02-06 07:07 UTC] b dot hallinger at skyforcesystems dot de

Sorting is not yet supported util the new release - but there is a patch available.
Please see Bug #4839.

[2006-03-01 04:18 UTC] delatbabel at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

See also request #4839.