Page MenuHomePhorge

Fix PHP 8.3 "Usage of ldap_connect with two arguments is deprecated" exception
Needs ReviewPublic

Authored by aklapper on Aug 19 2024, 19:49.

Details

Summary

Per https://www.php.net/manual/en/function.ldap-connect.php the signature $conn = @ldap_connect($host, $this->port); is deprecated since PHP 8.3.
Thus pass a full LDAP URI as the only parameter.

ERROR 8192: Usage of ldap_connect with two arguments is deprecated at [/var/www/html/phorge/phorge/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php:308]

Closes T15724

Test Plan

Set up LDAP as auth provider, try to log in.

Diff Detail

Repository
rP Phorge
Branch
ldap83connect
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1548
Build 1548: arc lint + arc unit