|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-10 13:51 UTC] remi dot lanvin at bsocom dot com
[2007-10-11 21:48 UTC] iliaa@php.net
[2007-10-12 14:43 UTC] remi dot lanvin at bsocom dot com
[2007-10-12 18:17 UTC] mj@php.net
[2008-10-11 03:31 UTC] felipe@php.net
[2008-11-10 11:05 UTC] vrana@php.net
[2008-11-18 01:00 UTC] doc-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 02:00:01 2025 UTC |
Description: ------------ PDO::FETCH_SERIALIZE doesn't provide a serialized string. Reproduce code: --------------- class MyClass { } $dbh = new PDO($dsn, $user, $password); $results = $dbh->query($sql); $results->setFetchMode(PDO::FETCH_CLASS | PDO::FETCH_SERIALIZE, 'MyClass'); print_r($results->fetchAll()); Expected result: ---------------- An array of serialized strings. Actual result: -------------- An array of unserialized MyClass objects (similar as with FETH_CLASS alone).