Bug #59842 | mysqli_fetch_object() API function always converts field values to string | ||
---|---|---|---|
Submitted: | 31 Jan 2011 13:06 | Modified: | 31 Jan 2011 13:13 |
Reporter: | Cyber Ghost | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Storage Engine API | Severity: | S3 (Non-critical) |
Version: | 5.1.49-1ubuntu8.1 | OS: | Linux (Ubuntu) |
Assigned to: | CPU Architecture: | Any | |
Tags: | API, mysqli_fetch_object |
[31 Jan 2011 13:06]
Cyber Ghost
[31 Jan 2011 13:13]
Ulf Wendel
The MySQL text protocol (non-prepared statements) is using strings for data encoding. PHP does not convert the strings it gets from MySQL into "native" types. This is how PHP mysqli has been designed and works ever since.