PDO fixedly passes MYSQL_TYPE_LONG, causing values exceeding INT32 to overflow When using non-mysqlnd drivers,
Open
@kamil-tekiela is already working on this.
Since Aug 8, 2025.
Bug
Extension: mysqlnd
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
When using non-mysqlnd drivers, PDO fixedly passes MYSQL_TYPE_LONG, causing values exceeding INT32 to overflow. Why This Code Has Survived Across Multiple Versions?
It's a bug or feature?
use mysqlnd:
use other:
PHP Version
PHP7、php8
Operating System
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.