Skip to content
Permalink
Browse files

Fix signatures of \ldap_bind() and \ldap_bind_ext() (#2122)

Both functions accepts a null $bind_rdn parameter to do an
anonymous bind and they also accept a fourth optional
parameter.

References:
https://www.php.net/manual/en/function.ldap-bind.php
https://github.com/php/php-src/blob/php-7.3.9/ext/ldap/ldap.c#L1152
https://github.com/php/php-src/blob/php-7.3.9/ext/ldap/ldap.c#L1209
  • Loading branch information...
LeSuisse authored and muglug committed Sep 11, 2019
1 parent 6018271 commit a8e58b0ba0242819ce201870ac56e05f7604e6ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/CallMap.php
@@ -6644,8 +6644,8 @@
'ldap_8859_to_t61' => ['string', 'value'=>'string'],
'ldap_add' => ['bool', 'link_identifier'=>'resource', 'dn'=>'string', 'entry'=>'array', 'serverctrls='=>'array'],
'ldap_add_ext' => ['resource|false', 'link_identifier'=>'resource', 'dn'=>'string', 'entry'=>'array', 'serverctrls='=>'array'],
'ldap_bind' => ['bool', 'link_identifier'=>'resource', 'dn='=>'string', 'password='=>'?string'],
'ldap_bind_ext' => ['resource|false', 'link_identifier'=>'resource', 'bind_rdn='=>'string', 'bind_password='=>'string'],
'ldap_bind' => ['bool', 'link_identifier'=>'resource', 'dn='=>'?string', 'password='=>'?string', 'serverctrls='=>'array'],
'ldap_bind_ext' => ['resource|false', 'link_identifier'=>'resource', 'bind_rdn='=>'?string', 'bind_password='=>'?string', 'serverctrls='=>'array'],
'ldap_close' => ['bool', 'link_identifier'=>'resource'],
'ldap_compare' => ['bool|int', 'link_identifier'=>'resource', 'dn'=>'string', 'attr'=>'string', 'value'=>'string'],
'ldap_connect' => ['resource|false', 'host='=>'string', 'port='=>'int', 'wallet='=>'string', 'wallet_passwd='=>'string', 'authmode='=>'int'],

0 comments on commit a8e58b0

Please sign in to comment.
You can’t perform that action at this time.