diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-18 23:39:42 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-19 10:35:17 +0100 |
commit | f33105dcb6fb6f59801ebf122fd7223a41fa83aa (patch) | |
tree | 0999bff67e54b01f949af51d139cbd0ba59e4e6c | |
parent | cfae999f1b7b1769255d4320abbf0b89ab13a3ad (diff) | |
download | php-git-f33105dcb6fb6f59801ebf122fd7223a41fa83aa.tar.gz |
ldap_search() and friends can return array
See the description of <https://www.php.net/ldap-search>, and also the
implementation.
Closes GH-6620.
-rw-r--r-- | ext/ldap/ldap.stub.php | 6 | ||||
-rw-r--r-- | ext/ldap/ldap_arginfo.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/ldap/ldap.stub.php b/ext/ldap/ldap.stub.php index 987c1120b9..d859c69af3 100644 --- a/ext/ldap/ldap.stub.php +++ b/ext/ldap/ldap.stub.php @@ -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) {} diff --git a/ext/ldap/ldap_arginfo.h b/ext/ldap/ldap_arginfo.h index f235aa1f89..15e41afe72 100644 --- a/ext/ldap/ldap_arginfo.h +++ b/ext/ldap/ldap_arginfo.h @@ -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) |