Home » Networking » Net_LDAP » Bug #6685
i need to sort the result of net_ldap::search
Details
| Request #6685 | i need to sort the result of net_ldap::search |
|---|---|
| Submitted | 2006-02-03 13:58 UTC |
| From | dboukari at sqli dot com |
| Assigned | delatbabel |
| Status | Closed |
| Package | Net_LDAP |
| PHP Version | 4.3.3 |
| OS | linux 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.