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

Fix assignment of the LDAP Wizard connection #31779

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

ChristophWurst
Copy link
Member

PHP<8.1 allowed this and serialized the connection object into a string. That means the connection wasn't actually remembered, $this->cr would still be null after the assignment of $this->$cr.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@szaimen
Copy link
Contributor

szaimen commented Mar 31, 2022

We have this in other places too:
image

@ChristophWurst
Copy link
Member Author

If you access a property by its name then it's fine. But our $cr isn't a string and the wrong syntax requires one, forcing the serialization of the object.

@szaimen
Copy link
Contributor

szaimen commented Mar 31, 2022

If you access a property by its name then it's fine. But our $cr isn't a string and the wrong syntax requires one, forcing the serialization of the object.

okay

@PVince81 PVince81 merged commit 74826ed into master Mar 31, 2022
@PVince81 PVince81 deleted the fix/ldap-wizard-getconnection branch March 31, 2022 19:38
@blizzz
Copy link
Member

blizzz commented Apr 1, 2022

/backport to stable23

@blizzz
Copy link
Member

blizzz commented Apr 1, 2022

/backport to stable22

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

Successfully merging this pull request may close these issues.

6 participants