php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44970 Documentation error on Object Serialization & mention of "main()"
Submitted: 2008-05-11 16:02 UTC Modified: 2008-11-05 16:58 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: flebron at bumeran dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: flebron at bumeran dot com
New email:
PHP Version: OS:

 

 [2008-05-11 16:02 UTC] flebron at bumeran dot com
Description:
------------
The "Object Serialization" page at http://php.net/manual/en/language.oop.serialization.php says that when using unserialize() to revive an object, if there is no class definition for that object available at the time of unserialize()ing, the object will be of class stdClass. 
The object is actually a of class __PHP_Incomplete_Class, as reported by get_class(), Reflection and var_export().

Also, the error when using any method of an instance of __PHP_Incomplete_Class reports it's happening in "main", and links to the definition of "main" on PHP.net, which itself states this shouldn't happen.

A script to reproduce this can be found on the manual page for object serialization.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-05 16:58 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 17:00:02 2026 UTC