|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-01 19:14 UTC] mike at blueroot dot co dot uk
[2005-09-01 19:35 UTC] wez@php.net
[2005-09-01 19:36 UTC] mike at blueroot dot co dot uk
[2005-09-01 21:07 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
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 )