Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: ldap_bind() expects at most 3 parameters, 4 given #187

Closed
localheinz opened this issue Jan 17, 2020 · 5 comments · Fixed by #188
Closed

Warning: ldap_bind() expects at most 3 parameters, 4 given #187

localheinz opened this issue Jan 17, 2020 · 5 comments · Fixed by #188

Comments

@localheinz
Copy link
Contributor

localheinz commented Jan 17, 2020

When using thecodingmachine/safe:1.0.2 on PHP 7.3.11, we have observed the following warning:

Warning: ldap_bind() expects at most 3 parameters, 4 given

When looking at

it's not apparent that ldap_bind() accepts 4 arguments.

In contrast, the wrapping function Safe\ldap_bind() accepts and invokes ldap_bind() with 4 arguments :

The documentation, from which the code is generated, states that ldap_bind() accepts 4 arguments:

Perhaps there is something wrong with the documentation?

@localheinz
Copy link
Contributor Author

/cc @OskarStark

@OskarStark
Copy link
Collaborator

OskarStark commented Jan 17, 2020

I couldn't find any occurence in the PHP source code where ldap_bind() accepts 4 arguments, but the docs say it can, but the signature (in the docs) looks the same like ldap_bind_ext()
https://github.com/php/doc-en/blob/060a8e23b015eec8692a921dcc6f21f669928a51/reference/ldap/functions/ldap-bind.xml#L16

cc @nikic , as php/doc-en is only a mirror, how can we fix that?

@localheinz
Copy link
Contributor Author

Also see php/doc-en#20.

@Kharhamel
Copy link
Collaborator

this issue is solved in v1.0.3

@OskarStark
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants