#34332 [Opn]: PDO returns corrupted data
| From: | mike at blueroot dot co dot uk | Date: | Thu, 01 Sep 2005 17:14:34 +0000 |
| Subject: | #34332 [Opn]: PDO returns corrupted data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84310@lists.php.net to get a copy of this message | ||
ID: 34332
User updated by: mike at blueroot dot co dot uk
Reported By: mike at blueroot dot co dot uk
Status: Open
Bug Type: PDO related
Operating System: Linux 2.6
PHP Version: 5.1.0RC1
New Comment:
I have tried this as both mod_php under Apache and FastCGI under
Litespeed.
Previous Comments:
------------------------------------------------------------------------
[2005-09-01 19:09:12] mike at blueroot dot co dot uk
Description:
------------
PDO is corrupting data returned from the database.
Numbers such as 15215 are returned as 1521[random character]
eg. 11511 is returned as 1151
This bug doesnt seem to be present in php-5.1.0b2 (php-5.1.0b3 has a
mktime bug), but it is in RC1
Reproduce code:
---------------
$sql = "SELECT id FROM table WHERE other_id = 3";
$rs = $db->query($sql);
$result = $rs->fetchAll(PDO_FETCH_ASSOC);
print_r($result);
Expected result:
----------------
Array
(
[id] => 11511
)
Actual result:
--------------
Array
(
[id] => 1151
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34332&edit=1