-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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: Remove obsolete resource typing #44658
Conversation
5ba403a
to
cd68ed3
Compare
In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Directly copied stubs for php ext folder from PHP-8.1 branch Signed-off-by: Côme Chilliet <[email protected]>
f082338
to
8177fc8
Compare
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to doublecheck
} while (($state === self::LRESULT_PROCESSED_SKIP | ||
|| $this->ldap->isResource($entry)) | ||
&& ($dnReadLimit === 0 || $dnReadCount < $dnReadLimit)); | ||
} while ($dnReadLimit === 0 || $dnReadCount < $dnReadLimit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not taking $state
into account anymore. Is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to $this->ldap->isResource($entry)
cannot return false
, by typing, so the $state
was not taken into account before either. If this is/was a bug, we can change the condition.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I was a bit puzzled also because the local $state
var was not removed (NaaS). All good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
Summary
In PHP>=8.1, LDAP and FTP resources are always typed objects
TODO
Checklist