@@ -69,13 +69,7 @@ function ldap_bind($link_identifier, string $bind_rdn = null, string $bind_passw
6969function ldap_control_paged_result_response ($ link , $ result , string &$ cookie = null , int &$ estimated = null ): void
7070{
7171 error_clear_last ();
72- if ($ estimated !== null ) {
73- $ result = \ldap_control_paged_result_response ($ link , $ result , $ cookie , $ estimated );
74- } elseif ($ cookie !== null ) {
75- $ result = \ldap_control_paged_result_response ($ link , $ result , $ cookie );
76- } else {
77- $ result = \ldap_control_paged_result_response ($ link , $ result );
78- }
72+ $ result = \ldap_control_paged_result_response ($ link , $ result , $ cookie , $ estimated );
7973 if ($ result === false ) {
8074 throw LdapException::createFromPhpError ();
8175 }
@@ -968,13 +962,7 @@ function ldap_next_attribute($link_identifier, $result_entry_identifier): string
968962function ldap_parse_exop ($ link , $ result , string &$ retdata = null , string &$ retoid = null ): void
969963{
970964 error_clear_last ();
971- if ($ retoid !== null ) {
972- $ result = \ldap_parse_exop ($ link , $ result , $ retdata , $ retoid );
973- } elseif ($ retdata !== null ) {
974- $ result = \ldap_parse_exop ($ link , $ result , $ retdata );
975- } else {
976- $ result = \ldap_parse_exop ($ link , $ result );
977- }
965+ $ result = \ldap_parse_exop ($ link , $ result , $ retdata , $ retoid );
978966 if ($ result === false ) {
979967 throw LdapException::createFromPhpError ();
980968 }
@@ -1003,17 +991,7 @@ function ldap_parse_exop($link, $result, string &$retdata = null, string &$retoi
1003991function ldap_parse_result ($ link , $ result , int &$ errcode , string &$ matcheddn = null , string &$ errmsg = null , array &$ referrals = null , array &$ serverctrls = null ): void
1004992{
1005993 error_clear_last ();
1006- if ($ serverctrls !== null ) {
1007- $ result = \ldap_parse_result ($ link , $ result , $ errcode , $ matcheddn , $ errmsg , $ referrals , $ serverctrls );
1008- } elseif ($ referrals !== null ) {
1009- $ result = \ldap_parse_result ($ link , $ result , $ errcode , $ matcheddn , $ errmsg , $ referrals );
1010- } elseif ($ errmsg !== null ) {
1011- $ result = \ldap_parse_result ($ link , $ result , $ errcode , $ matcheddn , $ errmsg );
1012- } elseif ($ matcheddn !== null ) {
1013- $ result = \ldap_parse_result ($ link , $ result , $ errcode , $ matcheddn );
1014- } else {
1015- $ result = \ldap_parse_result ($ link , $ result , $ errcode );
1016- }
994+ $ result = \ldap_parse_result ($ link , $ result , $ errcode , $ matcheddn , $ errmsg , $ referrals , $ serverctrls );
1017995 if ($ result === false ) {
1018996 throw LdapException::createFromPhpError ();
1019997 }
0 commit comments