ID: 42881 Updated by: [EMAIL PROTECTED] Reported By: voidalan at koitech dot net -Status: Open +Status: Verified Bug Type: PDO related Operating System: CentOS 5 PHP Version: 5.2.4 New Comment:
The problem seems to be related to the usage of PDO::FETCH_PROPS_LATE and I can reproduce it with PHP 5.3. Seems to work with HEAD, however. Previous Comments: ------------------------------------------------------------------------ [2007-10-07 07:10:46] voidalan at koitech dot net Description: ------------ When using PDO::FETCH_CLASS it incorrectly returns PDO::FETCH_BOTH. In other words instead of returning objects it is returning a mixed array. The below code worked in 5.2.3 but when upgrading to 5.2.4 this occured. Reproduce code: --------------- http://pastemonkey.org/paste/470883a5-8d1c-4256-a59d-27b2404fdb0d Expected result: ---------------- Array( [0] => Object( id => hidden => featured => title => clientName => teaser => content => imgUrl => publishedBy => dateCreated => dateModified => ) ... ) Actual result: -------------- Array ( [0] => Array ( [id] => [0] => [hidden] => [1] => [featured] => [2] => [title] => [3] => [clientName] => [4] => [teaser] => [5] => [content] => [6] => [imgUrl] => [7] => [publishedBy] => [8] => [dateCreated] => [9] => [dateModified] => [10] => ) ... ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42881&edit=1