#50793 [NEW]: Note about not being able to serialize internal objects needs clarifiaction

From: Date: Mon, 18 Jan 2010 19:16:09 +0000
Subject: #50793 [NEW]: Note about not being able to serialize internal objects needs clarifiaction
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3745@lists.php.net to get a copy of this message
From: weirdan at gmail dot com Operating system: PHP version: 5.3.1 PHP Bug Type: Documentation problem Bug description: Note about not being able to serialize internal objects needs clarifiaction Description: ------------ Manual says 'It is not possible to serialize PHP built-in objects', however some of internal classes support serialization: weirdan@virtual-debian:/home/sam/trunk$ php -r 'var_dump(phpversion()); $c = new ReflectionClass("ArrayObject"); var_dump("is internal", $c->isInternal()); $q = new ArrayObject(); var_dump(serialize($q));' string(5) "5.3.1" string(11) "is internal" bool(true) string(45) "C:11:"ArrayObject":21:{x:i:0;a:0:{};m:a:0:{}}" weirdan@virtual-debian:/home/sam/trunk$ Reproduce code: --------------- --- From manual page: function.serialize#Notes --- See description Expected result: ---------------- Explicitly list serializable/non-serializable classes for extensions enabled by default (possibly in appendix). Actual result: -------------- The note is misleading. -- Edit bug report at http://bugs.php.net/?id=50793&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50793&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50793&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50793&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50793&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50793&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50793&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50793&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50793&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50793&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50793&r=support Expected behavior: http://bugs.php.net/fix.php?id=50793&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50793&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50793&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50793&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50793&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50793&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50793&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50793&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50793&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50793&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50793&r=mysqlcfg

« previous php.doc.bugs (#3745) next »