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

[Ldap] Warning on reset pagination #38874

Closed
a-menshchikov opened this issue Oct 28, 2020 · 5 comments
Closed

[Ldap] Warning on reset pagination #38874

a-menshchikov opened this issue Oct 28, 2020 · 5 comments

Comments

@a-menshchikov
Copy link
Contributor

Symfony version(s) affected: 5.1.8

Description
After #38392 \Symfony\Component\Ldap\Adapter\ExtLdap\Query::resetPagination returns warning from Adapter/ExtLdap/Query.php::239

Warning: ldap_parse_result() expects parameter 2 to be resource, int given

I can suppose that cause is on Adapter/ExtLdap/Query.php::177

@a-menshchikov
Copy link
Contributor Author

@lucasaba Could you watch this?

Nek- added a commit to Nek-/symfony that referenced this issue Oct 28, 2020
After PR symfony#38392 there is a little issue in the Symfony code base that
occurs only for PHP 7.4 and PHP 8.0.

This is related to issue symfony#38874
@Nek-
Copy link
Contributor

Nek- commented Oct 28, 2020

Hello @a-menshchikov does this ( #38875 ) fix your problem as expected?

Nek- added a commit to Nek-/symfony that referenced this issue Oct 29, 2020
After PR symfony#38392 there is a little issue in the Symfony code base that
occurs only for PHP 7.4 and PHP 8.0.

This is related to issue symfony#38874
@lucasaba
Copy link
Contributor

@a-menshchikov I'm on it. But that's quite strange: how is the resource supposed to change and become an int ?

Nek- added a commit to Nek-/symfony that referenced this issue Oct 29, 2020
After PR symfony#38392 there is a little issue in the Symfony code base that
occurs only for PHP 7.4 and PHP 8.0.

This is related to issue symfony#38874
@a-menshchikov
Copy link
Contributor Author

@Nek- yes, your fix helped.

@derrabus derrabus added the Ldap label Oct 29, 2020
Nek- added a commit to Nek-/symfony that referenced this issue Oct 29, 2020
After PR symfony#38392 there is a little issue in the Symfony code base that
occurs only for PHP 7.4 and PHP 8.0.

This is related to issue symfony#38874
@lucasaba
Copy link
Contributor

Just to confirm that I've added the error. As @jderusse pointed out in #38875 , I've changed a method with the wrong name.

@fabpot fabpot closed this as completed Nov 9, 2020
fabpot added a commit that referenced this issue Nov 9, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[Ldap] Fix pagination

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #38874
| License       | MIT
| Doc PR        | N/A

This replaces #38875 to fix a bug introduced by #38392

Commits
-------

4fe0a6f Fix LDAP pagination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants