pear / Net_LDAP2

Object oriented interface for searching and manipulating LDAP-entries
http://pear.php.net/package/Net_LDAP2
GNU Lesser General Public License v3.0
10 stars 6 forks source link

Broken on PHP 8.1+ #11

Closed cweiske closed 1 year ago

cweiske commented 1 year ago

PHP 8.1 introduced classes for LDAP connections, LDAP results and LDAP result entries. This breaks Net_LDAP2 because it tries to check for is_resource at some places where objects are returned now, e.g. Net_LDAP2_Entry::createConnected().

This leads to the problem that no result entries are returned anymore.


https://www.php.net/ChangeLog-8.php#8.1.0

LDAP:

  • Convert resource to object \LDAP\Connection.
  • Convert resource to object \LDAP\Result.
  • Convert resource to object \LDAP\ResultEntry.

https://www.php.net/manual/en/function.ldap-first-entry.php

Neustradamus commented 1 year ago

A PR has been done by @cweiske here: