|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-30 01:43 UTC] xing at mac dot com
[2005-12-30 06:46 UTC] sniper@php.net
[2005-12-30 07:34 UTC] xing at mac dot com
[2005-12-30 10:29 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jun 05 14:00:01 2026 UTC |
Description: ------------ cannot deserialize an serialized output... the serialized object is an array of query_result objects which contain an "result" element which is an array of simple objects. Reproduce code: --------------- <? class query_result { public $affected_rows = 0; public $num_rows = 0; public $insert_id = 0; public $result = array(); //pdo result public $pointer = 0; } $dump = unserialize(file_get_contents("dump.txt")); if($dump == NULL) { echo "error"; } else if(is_array($dump)) { echo "not error"; } else { echo "huh? {$dump}"; } ?> Expected result: ---------------- not error Actual result: -------------- error