@@ -204,6 +204,8 @@ function ldap_control_paged_result($link, int $pagesize, bool $iscritical = fals
204204/**
205205 * @param resource $link
206206 * @param resource $result
207+ * @param string $cookie
208+ * @param int $estimated
207209 * @deprecated since 7.4
208210 */
209211function ldap_control_paged_result_response ($ link , $ result , &$ cookie = null , &$ estimated = null ): bool {}
@@ -220,10 +222,16 @@ function ldap_rename($link_identifier, string $dn, string $newrdn, string $newpa
220222function ldap_rename_ext ($ link_identifier , string $ dn , string $ newrdn , string $ newparent , bool $ deleteoldrdn , array $ servercontrols = []) {}
221223
222224
223- /** @param resource $link_identifier */
225+ /**
226+ * @param resource $link_identifier
227+ * @param array|string|int $retval
228+ */
224229function ldap_get_option ($ link_identifier , int $ option , &$ retval = null ): bool {}
225230
226- /** @param resource|null $link_identifier */
231+ /**
232+ * @param resource|null $link_identifier
233+ * @param array|string|int|bool $newval
234+ */
227235function ldap_set_option ($ link_identifier , int $ option , $ newval ): bool {}
228236
229237/**
@@ -250,6 +258,7 @@ function ldap_next_reference($link, $entry) {}
250258/**
251259 * @param resource $link
252260 * @param resource $entry
261+ * @param array $referrals
253262 */
254263function ldap_parse_reference ($ link , $ entry , &$ referrals ): bool {}
255264#endif
@@ -264,13 +273,12 @@ function ldap_parse_result($link, $result, &$errcode, &$matcheddn = null, &$errm
264273#endif
265274
266275#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
267- /**
268- * @param resource $link
269- */
276+ /** @param resource $link */
270277function ldap_set_rebind_proc ($ link , ?callable $ callback ): bool {}
271278#endif
272279
273280#ifdef HAVE_LDAP_START_TLS_S
281+ /** @param resource $link_identifier */
274282function ldap_start_tls ($ link_identifier ): bool {}
275283#endif
276284
@@ -286,13 +294,18 @@ function ldap_8859_to_t61(string $value): string|false {}
286294#ifdef HAVE_LDAP_EXTENDED_OPERATION_S
287295/**
288296 * @param resource $link
297+ * @param string $retdata
298+ * @param string $retoid
289299 * @return resource|bool
290300 */
291301function ldap_exop ($ link , string $ reqoid , ?string $ reqdata = null , ?array $ servercontrols = [], &$ retdata = null , &$ retoid = null ) {}
292302#endif
293303
294304#ifdef HAVE_LDAP_PASSWD
295- /** @param resource $link */
305+ /**
306+ * @param resource $link
307+ * @param array $serverctrls
308+ */
296309function ldap_exop_passwd ($ link , string $ user = '' , string $ oldpw = '' , string $ newpw = '' , &$ serverctrls = null ): string |bool {}
297310#endif
298311
@@ -302,17 +315,17 @@ function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $
302315function ldap_exop_whoami ($ link ): string |bool {}
303316#endif
304317
305-
306318#ifdef HAVE_LDAP_REFRESH_S
307319/** @param resource $link */
308320function ldap_exop_refresh ($ link , string $ dn , int $ ttl ): int |false {}
309321#endif
310322
311-
312323#ifdef HAVE_LDAP_PARSE_EXTENDED_RESULT
313324/**
314325 * @param resource $link
315326 * @param resource $result
327+ * @param string $retdata
328+ * @param string $retoid
316329 */
317330function ldap_parse_exop ($ link , $ result , &$ retdata = null , &$ retoid = null ): bool {}
318331#endif
0 commit comments