ID:               34332
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mike at blueroot dot co dot uk
-Status:           Open
+Status:           Closed
 Bug Type:         PDO related
 Operating System: Linux 2.6
 PHP Version:      5.1.0RC1
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-09-01 19:36:42] mike at blueroot dot co dot uk

Sorry, its pdo-mysql

------------------------------------------------------------------------

[2005-09-01 19:35:01] [EMAIL PROTECTED]

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?

------------------------------------------------------------------------

[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

Reply via email to