Skip to content

Commit f33105d

Browse files
committed
ldap_search() and friends can return array
See the description of <https://www.php.net/ldap-search>, and also the implementation. Closes GH-6620.
1 parent cfae999 commit f33105d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/ldap/ldap.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ function ldap_sasl_bind($ldap, ?string $dn = null, ?string $password = null, ?st
3535

3636
/**
3737
* @param resource|array $ldap
38-
* @return resource|false
38+
* @return resource|array|false
3939
*/
4040
function ldap_read($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null) {}
4141

4242
/**
4343
* @param resource|array $ldap
44-
* @return resource|false
44+
* @return resource|array|false
4545
*/
4646
function ldap_list($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null) {}
4747

4848
/**
4949
* @param resource|array $ldap
50-
* @return resource|false
50+
* @return resource|array|false
5151
*/
5252
function ldap_search($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null) {}
5353

ext/ldap/ldap_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 836e18943977613fc0abf7443ad4d5afdbe65a0a */
2+
* Stub hash: 9d6315aeee2e3a1be51c05b65a960ed433bbe4ec */
33

44
#if defined(HAVE_ORALDAP)
55
ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_connect, 0, 0, 0)

0 commit comments

Comments
 (0)