Bug #102338 | Prepared statements treat integer values incorrectly (using PHP MySQLi) | ||
---|---|---|---|
Submitted: | 21 Jan 2021 22:53 | Modified: | 15 Oct 2021 9:55 |
Reporter: | G Man | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S2 (Serious) |
Version: | 8.0.22 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[21 Jan 2021 22:53]
G Man
[22 Jan 2021 8:04]
MySQL Verification Team
Hello! Thank you for the report and test case. regards, Umesh
[22 Jan 2021 8:17]
MySQL Verification Team
-- Looks like regression. Issue seen since 8.0.22+ C:\php>php test.php Current PHP version: 8.0.1 MySQL Server: 8.0.22 array(0) { } C:\php>php test.php Current PHP version: 8.0.1 MySQL Server: 8.0.23 array(0) { } -- 5.6.50, 5.7.33 and 5.7.20 - looks fine C:\php>php test.php Current PHP version: 8.0.1 MySQL Server: 5.6.50 array(1) { [0]=> array(2) { ["b"]=> int(892373780064030720) [0]=> int(892373780064030720) } } C:\php>php test.php MySQL Server: 5.7.33 array(1) { [0]=> array(2) { ["b"]=> int(892373780064030720) [0]=> int(892373780064030720) } } C:\php>php test.php Current PHP version: 8.0.1 MySQL Server: 8.0.21-commercial array(1) { [0]=> array(2) { ["b"]=> int(892373780064030720) [0]=> int(892373780064030720) } }
[29 Jan 2021 12:51]
Georgi Kodinov
Posted by developer: Can I please get the exact sequence of libmysql C API calls resulting from the above PHP snippet to reproduce the bug?
[16 Oct 2021 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[1 Sep 2022 11:54]
Kieran Brahney
It seems this was fixed in 8.0.28 https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-28.html possibly something to do with the 'Data Type Notes' and MySQL Connectors :shrug: