#34332 [Opn->Fbk]: PDO returns corrupted data

From: Date: Thu, 01 Sep 2005 17:35:02 +0000
Subject: #34332 [Opn->Fbk]: PDO returns corrupted data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84311@lists.php.net to get a copy of this message
ID: 34332 Updated by: wez@php.net Reported By: mike at blueroot dot co dot uk -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Linux 2.6 PHP Version: 5.1.0RC1 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Which driver are you using? Previous Comments: ------------------------------------------------------------------------ [2005-09-01 19:14:33] mike at blueroot dot co dot uk I have tried this as both mod_php under Apache and FastCGI under Litespeed. ------------------------------------------------------------------------ [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

« previous php.bugs (#84311) next »