#40344 [NEW]: lack of information for __sleep
| From: | christian at enovo dot dk | Date: | Sat, 03 Feb 2007 17:12:00 +0000 |
| Subject: | #40344 [NEW]: lack of information for __sleep | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969375204@lists.php.net to get a copy of this message | ||
From: christian at enovo dot dk
Operating system: FreeBSD 6.0
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: lack of information for __sleep
Description:
------------
http://dk2.php.net/manual/en/language.oop5.magic.php
"Example 19.27. Sleep and wakeup"
doesnt return anything from __sleep() - so it should serialize NULL
(17:59:19) (@Derick) have a __sleep() method?
(17:59:46) (Jippi) yep
(18:00:01) (@Derick) there you go
(18:00:11) (@Derick) you need to return an array from that
(18:00:20) (@Derick) with which properties should be in the serialized
array
(18:00:28) (@Derick) if not, I think it doens't serialize it
(18:01:02) (@Derick) heh "Example 1258" isn't very useful :)
(18:01:13) (Jippi) ah, works
(18:02:15) (Jippi) http://dk2.php.net/manual/en/language.oop5.magic.php
Example 19.27 doesnt mention anything about returning anything in class
Connection though ?
(18:02:17) (@Derick) the docs should mention this though, I suggest to
file a doc feature request for
"http://no2.php.net/manual/en/language.oop5.magic.php"
(18:02:22) (@Derick) right
--
Edit bug report at http://bugs.php.net/?id=40344&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40344&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40344&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40344&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40344&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40344&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40344&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40344&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40344&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40344&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40344&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40344&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40344&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40344&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40344&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40344&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40344&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40344&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40344&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40344&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40344&r=mysqlcfg