summaryrefslogtreecommitdiff
path: root/ext/ldap
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-03 00:45:51 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-03 00:45:51 +0200
commit79981a394e97bebf41a7a5633aa4db4357e1b21b (patch)
tree5b06fc8cf1325ce5d55c233591015ac1fc399ce4 /ext/ldap
parent6ba24e96150fd0f536338c785412a19ab33792e1 (diff)
downloadphp-git-79981a394e97bebf41a7a5633aa4db4357e1b21b.tar.gz
Add a bunch of missing argument types to stubs
Diffstat (limited to 'ext/ldap')
-rw-r--r--ext/ldap/ldap.stub.php29
-rw-r--r--ext/ldap/ldap_arginfo.h4
2 files changed, 23 insertions, 10 deletions
diff --git a/ext/ldap/ldap.stub.php b/ext/ldap/ldap.stub.php
index 8a87fa501f..9739ce59c2 100644
--- a/ext/ldap/ldap.stub.php
+++ b/ext/ldap/ldap.stub.php
@@ -204,6 +204,8 @@ function ldap_control_paged_result($link, int $pagesize, bool $iscritical = fals
/**
* @param resource $link
* @param resource $result
+ * @param string $cookie
+ * @param int $estimated
* @deprecated since 7.4
*/
function 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
function ldap_rename_ext($link_identifier, string $dn, string $newrdn, string $newparent, bool $deleteoldrdn, array $servercontrols = []) {}
-/** @param resource $link_identifier */
+/**
+ * @param resource $link_identifier
+ * @param array|string|int $retval
+ */
function ldap_get_option($link_identifier, int $option, &$retval = null): bool {}
-/** @param resource|null $link_identifier */
+/**
+ * @param resource|null $link_identifier
+ * @param array|string|int|bool $newval
+ */
function ldap_set_option($link_identifier, int $option, $newval): bool {}
/**
@@ -250,6 +258,7 @@ function ldap_next_reference($link, $entry) {}
/**
* @param resource $link
* @param resource $entry
+ * @param array $referrals
*/
function ldap_parse_reference($link, $entry, &$referrals): bool {}
#endif
@@ -264,13 +273,12 @@ function ldap_parse_result($link, $result, &$errcode, &$matcheddn = null, &$errm
#endif
#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
-/**
- * @param resource $link
- */
+/** @param resource $link */
function ldap_set_rebind_proc($link, ?callable $callback): bool {}
#endif
#ifdef HAVE_LDAP_START_TLS_S
+/** @param resource $link_identifier */
function ldap_start_tls($link_identifier): bool {}
#endif
@@ -286,13 +294,18 @@ function ldap_8859_to_t61(string $value): string|false {}
#ifdef HAVE_LDAP_EXTENDED_OPERATION_S
/**
* @param resource $link
+ * @param string $retdata
+ * @param string $retoid
* @return resource|bool
*/
function ldap_exop($link, string $reqoid, ?string $reqdata = null, ?array $servercontrols = [], &$retdata = null, &$retoid = null) {}
#endif
#ifdef HAVE_LDAP_PASSWD
-/** @param resource $link */
+/**
+ * @param resource $link
+ * @param array $serverctrls
+ */
function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $newpw = '', &$serverctrls = null): string|bool {}
#endif
@@ -302,17 +315,17 @@ function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $
function ldap_exop_whoami($link): string|bool {}
#endif
-
#ifdef HAVE_LDAP_REFRESH_S
/** @param resource $link */
function ldap_exop_refresh($link, string $dn, int $ttl): int|false {}
#endif
-
#ifdef HAVE_LDAP_PARSE_EXTENDED_RESULT
/**
* @param resource $link
* @param resource $result
+ * @param string $retdata
+ * @param string $retoid
*/
function ldap_parse_exop($link, $result, &$retdata = null, &$retoid = null): bool {}
#endif
diff --git a/ext/ldap/ldap_arginfo.h b/ext/ldap/ldap_arginfo.h
index 8aa72a0276..61b449eda4 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: 63d7fc9e11bd2821a77f6ee709ceaf1fdcbf190e */
+ * Stub hash: 9ecb7515850d95a20199b3c52aaccb8b2b04e0cd */
#if defined(HAVE_ORALDAP)
ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_connect, 0, 0, 0)
@@ -344,7 +344,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_refresh, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, link)
ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
- ZEND_ARG_INFO(0, ttl)
+ ZEND_ARG_TYPE_INFO(0, ttl, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif