|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-16 20:59 UTC] tony2001@php.net
[2006-02-17 10:22 UTC] tomas_matousek at hotmail dot com
[2006-02-17 11:42 UTC] colder@php.net
[2006-09-08 09:10 UTC] colder@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 13:00:01 2025 UTC |
Description: ------------ When unserialize calls __autoload() and this dosn't load the required class unserialize returns an object that doesn't behave like object; var_dump displays it as an object but is_object gives false. Reproduce code: --------------- function __autoload($class_name) { } var_dump($o = unserialize('O:1:"X":0:{}')); var_dump(is_object($o)); Expected result: ---------------- object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(1) "X" } bool(true) Actual result: -------------- object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(1) "X" } bool(false)