You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, this module does not support any version of PHP 8, due to the reasons documented below.
I have done some work to resolve these issues and tested them in a production system. I would like to create a pull request, so my fixes can be used as the basis of version 1.7 of this module. I do not think they should be merged into 1.6, as one of these fixes only works with 8.1 and above.
Can a 1.7 branch please be created, so I can create a pull request (I did not want to create one against 1 branch, as this does not seem to align with your workflow).
Since PHP 8.1, LDAP related functions return an object instead of a resource, causing various is_resource() checks to error.
The module needs to be migrated to laminas/ldap equivalent to resolve this issue.
See #36
ldap_control_* functions
The current implementation of pagination relies on ldap_control_paged_result() and ldap_control_paged_result_response() functions to request multiple pages of data from LDAP as needed. As of PHP 8, both functions have been deprecated in favor of passing control parameters to ldap_search(). The call to ldap_search() updates the control parameters with a cookie which can be passed to subsequent calls to get further result sets.
See #35
method_exists()
LDAPService passes null to method_exists() while iterating through LDAP field mappings.
The text was updated successfully, but these errors were encountered:
Thank you for this. Please raise the PR against the 1 branch for now - we don't create minor branches (e.g. 1.7) until we're ready to release a new minor version - that means everything targetting 1 will automatically be targetting a new minor release in the 1.x release chain. And regardless of which branch is initially targetted, we can always retarget it later after reviewing the PR if we feel that is appropriate.
Currently, this module does not support any version of PHP 8, due to the reasons documented below.
I have done some work to resolve these issues and tested them in a production system. I would like to create a pull request, so my fixes can be used as the basis of version 1.7 of this module. I do not think they should be merged into 1.6, as one of these fixes only works with 8.1 and above.
Can a 1.7 branch please be created, so I can create a pull request (I did not want to create one against 1 branch, as this does not seem to align with your workflow).
FYI @GuySartorelli
zend-ldap
Since PHP 8.1, LDAP related functions return an object instead of a resource, causing various is_resource() checks to error.
The module needs to be migrated to laminas/ldap equivalent to resolve this issue.
See #36
ldap_control_* functions
The current implementation of pagination relies on ldap_control_paged_result() and ldap_control_paged_result_response() functions to request multiple pages of data from LDAP as needed. As of PHP 8, both functions have been deprecated in favor of passing control parameters to ldap_search(). The call to ldap_search() updates the control parameters with a cookie which can be passed to subsequent calls to get further result sets.
See #35
method_exists()
LDAPService passes null to method_exists() while iterating through LDAP field mappings.
The text was updated successfully, but these errors were encountered: