Skip to content

Commit

Permalink
ldap_search() and friends can return array
Browse files Browse the repository at this point in the history
See the description of <https://www.php.net/ldap-search>, and also the
implementation.

Closes GH-6620.
  • Loading branch information
cmb69 committed Jan 19, 2021
1 parent cfae999 commit f33105d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ext/ldap/ldap.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ function ldap_sasl_bind($ldap, ?string $dn = null, ?string $password = null, ?st

/**
* @param resource|array $ldap
* @return resource|false
* @return resource|array|false
*/
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) {}

/**
* @param resource|array $ldap
* @return resource|false
* @return resource|array|false
*/
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) {}

/**
* @param resource|array $ldap
* @return resource|false
* @return resource|array|false
*/
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) {}

Expand Down
2 changes: 1 addition & 1 deletion ext/ldap/ldap_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 836e18943977613fc0abf7443ad4d5afdbe65a0a */
* Stub hash: 9d6315aeee2e3a1be51c05b65a960ed433bbe4ec */

#if defined(HAVE_ORALDAP)
ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_connect, 0, 0, 0)
Expand Down

0 comments on commit f33105d

Please sign in to comment.