Control: tag -1 upstream
Control: forwarded -1 https://github.com/pear/Net_LDAP2/issues/19

Hi,

Thanks for the report!

On Wed, 25 Feb 2026 at 17:31:38 -0300, Renan Rodrigo wrote:
> 200s 1) Net_LDAP2Test::testDelete
> 200s TypeError: ldap_list(): Argument #4 ($attributes) must be a list of 
> strings, null given
> 200s
> 200s /usr/share/php/Net/LDAP2.php:794
> 200s /tmp/autopkgtest.OHme9I/build.lJx/src/tests/Net_LDAP2Test.php:292

In the failing ldap_list() call

    @ldap_list($this->_link, $dn, '(objectClass=*)', array(null), 0, 0);

handling of `array(null)` is AFAICT undocumented but I suppose it is
meant to only fetch DNs, avoiding the overhead of fetching attributes
and values.  I think it's fair to assume RFC 4511 compliance for the
server, in which case per ยง4.5.1.8 `array('1.1')` should work instead.

> 200s 2) Net_LDAP2Test::testModify
> 200s ValueError: ldap_modify(): Argument #3 ($entry) attribute 
> "postalAddress" must be a non-empty list of attribute values
> 200s
> 200s /usr/share/php/Net/LDAP2/Entry.php:885
> 200s /usr/share/php/Net/LDAP2.php:914
> 200s /tmp/autopkgtest.OHme9I/build.lJx/src/tests/Net_LDAP2Test.php:344
> 200s
> 200s 3) Net_LDAP2Test::testMove
> 200s ValueError: ldap_modify(): Argument #3 ($entry) must not be empty
> 200s
> 200s /usr/share/php/Net/LDAP2/Entry.php:885
> 200s /usr/share/php/Net/LDAP2.php:1369
> 200s /tmp/autopkgtest.OHme9I/build.lJx/src/tests/Net_LDAP2Test.php:673

These look related to the following PHP8.5 bug: 
https://github.com/php/php-src/issues/21262
(not tested with a custom PHP build though).  If the PHP migration is
not pressing I'd revisit that one once 8.5.4 has been released.

> 200s 4) Net_LDAP2Test::testCopy
> 200s TypeError: ldap_list(): Argument #4 ($attributes) must be a list of 
> strings, null given
> 200s
> 200s /usr/share/php/Net/LDAP2.php:794
> 200s /tmp/autopkgtest.OHme9I/build.lJx/src/tests/Net_LDAP2Test.php:772

Same as 1).

-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to