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 #4483

Net_LDAP->getEntry() default beaviour

Details

Submitted2005-05-31 10:04 UTC
Frompkremer at spurious dot biz
Assignedjw
StatusClosed
PackageNet_LDAP
PHP Version4.3.11
OSLinux 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('')) {
}