#44970 [NEW]: Documentation error on Object Serialization & mention of "main()"
| From: | flebron at bumeran dot com | Date: | Sun, 11 May 2008 16:02:38 +0000 |
| Subject: | #44970 [NEW]: Documentation error on Object Serialization & mention of "main()" | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-817@lists.php.net to get a copy of this message | ||
From: flebron at bumeran dot com
Operating system: Windows XP
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Documentation error on Object Serialization & mention of "main()"
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 bug report at http://bugs.php.net/?id=44970&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44970&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44970&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44970&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44970&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44970&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44970&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44970&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44970&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44970&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44970&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44970&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44970&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44970&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44970&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44970&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44970&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44970&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44970&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44970&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44970&r=mysqlcfg