Skip to content

PDO fixedly passes MYSQL_TYPE_LONG, causing values exceeding INT32 to overflow When using non-mysqlnd drivers, #19413

@zrayzhou

Description

@zrayzhou

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:

Image

use other:

Image

PHP Version

PHP7、php8

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions