]> granicus.if.org Git - php/commitdiff
ldap_search() and friends can return array
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 18 Jan 2021 22:39:42 +0000 (23:39 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 19 Jan 2021 09:35:17 +0000 (10:35 +0100)
See the description of <https://www.php.net/ldap-search>, and also the
implementation.

Closes GH-6620.

ext/ldap/ldap.stub.php
ext/ldap/ldap_arginfo.h

index 987c1120b9faf1030c3d350f6372221b1f3dbbfb..d859c69af33b087c5aca1c71bc1061248edfad5c 100644 (file)
@@ -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) {}
 
index f235aa1f89977cae370edca7ee493277bcc1a223..15e41afe7295358cf195d280adee3ca6082b3cdb 100644 (file)
@@ -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)