-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
PHP8 is_resource behavioral change affects AbstractMonitoringMiddleware #2527
Comments
Hi @hewsut, thanks for opening this issue. I agree with the suggested change. I will mark this issue to be reviewed so we can address it further. Thanks! |
@yenfryherrerafeliz this issue is blocking our PHP v8 upgrade, this PR will fix the issue if you could please merge it: |
Hi @MattPearce, I have left a comment on the PR. Would you please be able to take look to it. Thanks! |
This issue has been fixed by the following PR. Closing for now. Thanks! |
|
Describe the bug
AbstractMonitoringMiddleware::prepareSocket
'sis_resource
check (#):Looks affected by https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.resource2object
Expected Behavior
The check to cover both PHP7 and PHP8 behaviors.
Current Behavior
The check only covers <PHP8 behavior.
Reproduction Steps
See this:
https://onlinephp.io/c/3574d
Possible Solution
Check for
!self::$socket instanceof Socket
as well to cover PHP8.Additional Information/Context
No response
SDK version used
master
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.0.23
The text was updated successfully, but these errors were encountered: