The __PHP_Incomplete_Class classIntroduction
Created by unserialize
when trying to unserialize an undefined class
or a class that is not listed in the
Prior to PHP 7.2.0, using is_object on the
__PHP_Incomplete_Class class would return Class synopsis
__PHP_Incomplete_Class
This class has no default properties or methods.
When created by unserialize,
in addition to all unserialized properties and values
the object will have a ExamplesExample #1 Created by unserialize
The above example will output: object(__PHP_Incomplete_Class)#2 (2) { ["__PHP_Incomplete_Class_Name"]=> string(7) "MyClass" ["property"]=> string(7) "myValue" } object(__PHP_Incomplete_Class)#3 (2) { ["__PHP_Incomplete_Class_Name"]=> string(7) "MyClass" ["property"]=> string(7) "myValue" } object(__PHP_Incomplete_Class)#4 (1) { ["__PHP_Incomplete_Class_Name"]=> string(16) "MyUndefinedClass" } |