Home » Networking » Net_LDAP » Bug #4483
Net_LDAP->getEntry() default beaviour
Details
| Submitted | 2005-05-31 10:04 UTC |
|---|---|
| From | pkremer at spurious dot biz |
| Assigned | jw |
| Status | Closed |
| Package | Net_LDAP |
| PHP Version | 4.3.11 |
| OS | Linux 2.4 |
| Roadmaps | (Not assigned) |
Comments
[2005-05-31 10:04 UTC] pkremer at spurious dot biz
Description:
------------
When using method getEntry() on an Net_LDAP object, and omitting the second parameter for the attributes to be fetched, NO attributes are fetched, which is not optimal as default.
The default should be to fetch an entry and have it contain/fetch all the attributes available.
Reproduce code:
---------------
the function declaration of getEntry in LDAP.php line 758 (revision 1.19.2.10) should be:
function &getEntry($dn, $attr = array()) {
}
instead of the current declaration, which has a non-empty array for the attributes:
function &getEntry($dn, $attr = array('')) {
}