-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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 GH-11587 PHP8.1: Fixed the condition for result set values to be of native type, making it compatible with previous versions. #11622
Conversation
@Girgias @iluuu1994 I think make sense to me. Could you review to this PR? |
I'm not personally familiar with the pdo extension... |
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.
This makes sense to me, but please address the comments.
@iluuu1994 @Girgias |
@Girgias |
I fixed the |
Thank you! |
This seems to be a breaking change, causing issues for Laravel. I would propose to revert this, and possibly only make this change in PHP 8.3. See laravel/framework#47937. |
Please open a new issue and reference this PR instead of commenting on and old closed PR |
@GrahamCampbell did you ever end up opening a new issue for this? We are hitting the breaking change bug in laravel/framework#47937 as well. |
No, please go ahead yourself. |
I have the same issue in Laravel. I'm using Laravel Sail, and Docker doesn't allow me to change the PHP version from 8.2.9 to 8.2.8. Has anyone managed to do it? |
Downgrading will be difficult unless you build php from source. Until this issue is resolved, I recommend using my Laravel library. https://github.com/SakiTakamachi/laravel-sqlsrv-err-avoid |
Issue: #11587
Original PR: #11616
Fixed a problem in which the float(M, D) type and double(M, D) type values retrieved from mysql changed between php8.0 or earlier and 8.1 or later when the above conditions were met.
Please see issue for details.