Skip to content

Commit cd40fc3

Browse files
committed
Convert resources to objects in ext/ldap
Closes GH-6770
1 parent 6690547 commit cd40fc3

39 files changed

+707
-591
lines changed

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ PHP NEWS
2020
. Implemented FR #68109 (Add MurmurHash V3). (Anatol, Michael)
2121
. Implemented FR #73385 (Add xxHash support). (Anatol)
2222

23+
- LDAP:
24+
. Convert resource<ldap link> to object \LDAP. (Máté)
25+
. Convert resource<ldap result> to object \LDAPResult. (Máté)
26+
. Convert resource<ldap result entry> to object \LDAPResultEntry. (Máté)
27+
2328
- MySQLi:
2429
. Fixed bug #70372 (Emulate mysqli_fetch_all() for libmysqlclient). (Nikita)
2530
. Fixed bug #80330 (Replace language in APIs and source code/docs).

UPGRADING

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ PHP 8.1 UPGRADE NOTES
6868
. The IMAP functions now accept and return, respectively, IMAPConnection objects
6969
instead of resources.
7070

71+
- LDAP:
72+
. The LDAP functions now accept and return, respectively, LDAP objects
73+
instead of "ldap link" resources. Return value checks using is_resource()
74+
should be replaced with checks for `false`.
75+
. The LDAP functions now accept and return, respectively, LDAPResult objects
76+
instead of "ldap result" resources. Return value checks using is_resource()
77+
should be replaced with checks for `false`.
78+
. The LDAP functions now accept and return, respectively, LDAPResultEntry
79+
objects instead of "ldap result entry" resources. Return value checks using
80+
is_resource() should be replaced with checks for `false`.
81+
7182
- MySQLi:
7283
. mysqli_fetch_fields() and mysqli_fetch_field_direct() will now always return
7384
zero for max_length. You can compute this information by iterating over the

0 commit comments

Comments
 (0)