#44970 [Opn->Csd]: Documentation error on Object Serialization & mention of "main()"
| From: | vrana@php.net | Date: | Wed, 05 Nov 2008 16:58:42 +0000 |
| Subject: | #44970 [Opn->Csd]: Documentation error on Object Serialization & mention of "main()" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1386@lists.php.net to get a copy of this message | ||
ID: 44970
Updated by: vrana@php.net
Reported By: flebron at bumeran dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-05-11 16:02:38] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44970&edit=1